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 b9c00e42 ensure V.P. sorts after other roles so Vice Chair is not 
isolated
b9c00e42 is described below

commit b9c00e42e1f77fa506c1e94de0c4385629b97fb1
Author: Sebb <[email protected]>
AuthorDate: Thu Jul 24 16:00:41 2025 +0100

    ensure V.P. sorts after other roles so Vice Chair is not isolated
---
 www/foundation/orgchart.cgi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/www/foundation/orgchart.cgi b/www/foundation/orgchart.cgi
index a681ab05..2d3db906 100755
--- a/www/foundation/orgchart.cgi
+++ b/www/foundation/orgchart.cgi
@@ -38,7 +38,8 @@ def emit_orgchart(org: {})
         end
       end
       _tbody do
-        org.sort_by {|key, value| value['info']['role']}.each do |key, value|
+        # ensure V.P. sorts after other roles so Vice Chair is not isolated
+        org.sort_by {|key, value| value['info']['role'].sub('V.P.,', 
'zV.P.,')}.each do |key, value|
           _tr_ do
             _td do
               _a value['info']['role'], href: "#{URLROOT}/#{key}"

Reply via email to