More refactorings.

This commit is contained in:
Lars Jung 2012-10-06 20:08:59 +02:00
parent bd65025a4c
commit b8b6d32a33
7 changed files with 207 additions and 84 deletions

View file

@ -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);
}