mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-11 17:53:50 -04:00
Improve the solution for #1545 by sorting the settings menu properly
to be naturally ordered and case insensitive.
This commit is contained in:
@@ -250,4 +250,8 @@ class Menu_Core extends Menu_Element {
|
||||
$view->menu = $this;
|
||||
return $view;
|
||||
}
|
||||
|
||||
static function title_comparator($a, $b) {
|
||||
return strnatcasecmp((string)$a->label, (string)$b->label);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user