[Rt-commit] rt branch, 4.6/search-selection-next, updated. rt-4.4.1-3-gfd2901f66

Jim Brandt jbrandt at bestpractical.com
Thu Jan 11 16:05:57 EST 2018


The branch, 4.6/search-selection-next has been updated
       via  fd2901f660caaa392a383dcbb542ed99e4a1c68b (commit)
      from  39cd4e92ce5b8e6eee0dc607679b2f850f2fed62 (commit)

Summary of changes:
 share/html/Widgets/SearchSelection | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit fd2901f660caaa392a383dcbb542ed99e4a1c68b
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Thu Jan 11 16:05:46 2018 -0500

    Alpha sort items in the select from list

diff --git a/share/html/Widgets/SearchSelection b/share/html/Widgets/SearchSelection
index f3bcef543..39f898038 100644
--- a/share/html/Widgets/SearchSelection
+++ b/share/html/Widgets/SearchSelection
@@ -82,7 +82,7 @@
         <div class="section">
           <h3><% $label | n %></h3>
           <ul>
-%           for my $item (@$items) {
+%           for my $item (sort {$a->{'label'} cmp $b->{'label'}} @$items) {
               <& /Elements/ShowSelectSearch, %$item &>
 %           }
           </ul>

-----------------------------------------------------------------------


More information about the rt-commit mailing list