mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-28 05:54:48 -04:00
More refactorings.
This commit is contained in:
parent
bd65025a4c
commit
b8b6d32a33
7 changed files with 207 additions and 84 deletions
|
@ -6,6 +6,13 @@ class Entry {
|
|||
|
||||
public static function cmp($entry1, $entry2) {
|
||||
|
||||
if ($entry1->is_folder && !$entry2->is_folder) {
|
||||
return -1;
|
||||
}
|
||||
if (!$entry1->is_folder && $entry2->is_folder) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
return strcasecmp($entry1->abs_path, $entry2->abs_path);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue