summaryrefslogtreecommitdiffstats
path: root/phpfspot.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r--phpfspot.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index b3ad278..6d3dddd 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -1955,7 +1955,7 @@ class PHPFSPOT {
return " ORDER BY p.name ASC";
}
else {
- return " ORDER BY p.uri ASC";
+ return " ORDER BY basename(p.uri) ASC";
}
break;
case 'name_desc':
@@ -1963,7 +1963,7 @@ class PHPFSPOT {
return " ORDER BY p.name DESC";
}
else {
- return " ORDER BY p.uri DESC";
+ return " ORDER BY basename(p.uri) DESC";
}
break;
}