Skip to content

Commit 96a365a

Browse files
authored
Fix case sensitive sorting issue
ZZZZ.jpg should not come before aaaa.jpg
1 parent d3bac1f commit 96a365a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LfmPath.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public function sortByColumn($arr_items)
201201
}
202202

203203
uasort($arr_items, function ($a, $b) use ($key_to_sort) {
204-
return strcmp($a->{$key_to_sort}, $b->{$key_to_sort});
204+
return strcasecmp($a->{$key_to_sort}, $b->{$key_to_sort});
205205
});
206206

207207
return $arr_items;

0 commit comments

Comments
 (0)