This is an automated email from the ASF dual-hosted git repository.
rubys 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 990721c sort by last name
990721c is described below
commit 990721c27f7d4bb006f3f79d188213aee1927318
Author: Sam Ruby <[email protected]>
AuthorDate: Tue Jun 30 20:39:22 2020 -0400
sort by last name
---
www/officers/coi.cgi | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/www/officers/coi.cgi b/www/officers/coi.cgi
index fb4b516..14515ce 100755
--- a/www/officers/coi.cgi
+++ b/www/officers/coi.cgi
@@ -86,6 +86,9 @@ def get_affirmed_template(name, timestamp)
template + filled_signature_block
end
+affirmers = IDS.map{|id, role| [ASF::Person.find(id), role]}
+ .sort_by{|affirmer, role| affirmer.public_name.split(' ').rotate(-1)}
+
_html do
_body? do
_whimsy_body(
@@ -114,8 +117,7 @@ _html do
end
end
_tbody do
- IDS.each do |id, role|
- affirmer = ASF::Person.find(id)
+ affirmers.each do |affirmer, role|
_tr do
_td affirmer.cn
_td do