This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 1f2b9cc8 Ignore case when sorting names
1f2b9cc8 is described below

commit 1f2b9cc80aaf051a18889d72800c288f3b96f02f
Author: Sebb <[email protected]>
AuthorDate: Sat Oct 15 12:59:12 2022 +0100

    Ignore case when sorting names
---
 www/officers/acreq.cgi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/www/officers/acreq.cgi b/www/officers/acreq.cgi
index fa76486b..2b2df878 100755
--- a/www/officers/acreq.cgi
+++ b/www/officers/acreq.cgi
@@ -160,7 +160,8 @@ _html do
                 _div.col_sm_6 do
                   _select.form_control name: "name", id: "name", required: 
true do
                     _option value: ''
-                    iclas.invert.to_a.sort.each do |name, email|
+                    # ignore case when sorting names
+                    iclas.invert.to_a.sort_by {|n, e| n.upcase}.each do |name, 
email|
                       _option name, value: name, data_email: email
                     end
                   end

Reply via email to