Improve the solution for #1545 by sorting the settings menu properly

to be naturally ordered and case insensitive.
This commit is contained in:
Bharat Mediratta
2010-12-29 17:31:28 -08:00
parent dd6da5e233
commit a8b0254e4a
3 changed files with 6 additions and 2 deletions

View File

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