From 921e5f37131daeeab0aca5b8b6d366e9f4320b2b Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 11 Jun 2011 22:50:09 +0000 Subject: sort widgets for add widgets panel git-svn-id: http://code.elgg.org/elgg/trunk@9185 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/page/layouts/widgets/add_panel.php | 1 + 1 file changed, 1 insertion(+) (limited to 'views/default') diff --git a/views/default/page/layouts/widgets/add_panel.php b/views/default/page/layouts/widgets/add_panel.php index 2786e83b2..91f74cc55 100644 --- a/views/default/page/layouts/widgets/add_panel.php +++ b/views/default/page/layouts/widgets/add_panel.php @@ -12,6 +12,7 @@ $context = $vars['context']; $exact = elgg_extract('exact_match', $vars, false); $widget_types = elgg_get_widget_types($context, $exact); +usort($widget_types, create_function('$a,$b', 'return strcmp($a->name,$b->name);')); $current_handlers = array(); foreach ($widgets as $column_widgets) { -- cgit v1.2.3