X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot.class.php;h=6d3ddddc681e83dc4e7c3186c54d9951210c48a9;hp=b3ad278458a350089ae2ea5ac6e09107e1d9be0b;hb=afadeef5cc359b4b3cb8372de1d2424691787807;hpb=18ecb83988277922d2743ace52b3ee4a74f35952 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; }