Skip to content

Commit 7bc9b19

Browse files
authored
Merge pull request #1013 from 7ammer/master
Fix case sensitive sorting issue
2 parents c2f6bc1 + 96a365a commit 7bc9b19

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)