From e9a7cdc691ff46dbcf88ee788b91c01864a623c6 Mon Sep 17 00:00:00 2001 From: Tom Densham Date: Tue, 12 Nov 2013 09:41:41 +0000 Subject: [PATCH] ADD: Sort classes alphabetically by default Just a simple enhancement that makes longer lists of classes much easier to use. --- code/GridFieldAddNewMultiClass.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/GridFieldAddNewMultiClass.php b/code/GridFieldAddNewMultiClass.php index ff4e404..127e426 100755 --- a/code/GridFieldAddNewMultiClass.php +++ b/code/GridFieldAddNewMultiClass.php @@ -93,6 +93,8 @@ class GridFieldAddNewMultiClass implements GridField_HTMLProvider, GridField_URL $result[$class] = $title; } + + asort($result); return $result; }