From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QOW1BghtUWNwbgAAbAwnHQ (envelope-from ) for ; Thu, 20 Oct 2022 17:45:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 6O2vBghtUWOoDQEA9RJhRA (envelope-from ) for ; Thu, 20 Oct 2022 17:45:12 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EC7D135565 for ; Thu, 20 Oct 2022 17:45:11 +0200 (CEST) Received: from localhost ([::1]:50286 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olXjJ-0000nC-3z for larch@yhetil.org; Thu, 20 Oct 2022 11:45:09 -0400 Received: from [::1] (helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olXhv-0006Cx-W3 for larch@yhetil.org; Thu, 20 Oct 2022 11:43:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38720) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olVbc-00070B-VJ for guix-patches@gnu.org; Thu, 20 Oct 2022 09:29:10 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34354) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olVbb-0002la-4V for guix-patches@gnu.org; Thu, 20 Oct 2022 09:29:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1olVba-0004Dy-JB for guix-patches@gnu.org; Thu, 20 Oct 2022 09:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58660] [PATCH 3/4] etc: teams: List teams sorted by id. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 20 Oct 2022 13:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58660 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58660@debbugs.gnu.org Cc: zimoun Received: via spool by 58660-submit@debbugs.gnu.org id=B58660.166627251016174 (code B ref 58660); Thu, 20 Oct 2022 13:29:02 +0000 Received: (at 58660) by debbugs.gnu.org; 20 Oct 2022 13:28:30 +0000 Received: from localhost ([127.0.0.1]:33426 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olVb4-0004Cj-2e for submit@debbugs.gnu.org; Thu, 20 Oct 2022 09:28:30 -0400 Received: from mail-wm1-f50.google.com ([209.85.128.50]:54256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olVb2-0004CM-1m for 58660@debbugs.gnu.org; Thu, 20 Oct 2022 09:28:29 -0400 Received: by mail-wm1-f50.google.com with SMTP id e18so14925167wmq.3 for <58660@debbugs.gnu.org>; Thu, 20 Oct 2022 06:28:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fpTANVt7iRO1tZEI0bMFv8S4UFTE0IakN4Rto/Fya8o=; b=p8LBnTnrP2j+q9owbgi5yjdOYB5hVXlxKiDtVDcIMdLp3JxlfjA56EC7KyPjXfN1P4 5j/m62K2kAxEDMGP67WYvPjrRDcgGU2ZAwsP7a/s/IyxC1ckX4JX1zqDUK4PTM3fnFRB YEQGNRQuDweFno+ysjA6SBb3DX7bClPFVQ0RrcYBSu+tkmiV8sdHvFyaeVRZkAG/sPS9 6NhKcDEDYgqWwR2+IDCXVN2nFT6pEURNxRAYV5unP+a73SGX+z3cgYa88GzkGBuZZNOo BCcloLnu80gJMZNGmeoTGHGVhNR3MUXygRPYtXPoWkTVaUYNp3gkXji23mmKBnBqwaRh /r8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fpTANVt7iRO1tZEI0bMFv8S4UFTE0IakN4Rto/Fya8o=; b=53Jp/ce7I9/BXn7FbP5qKcVcZqD4wA5sZptUZ2AoGIWpI1v57pYF+Aospl8HtXLZ4R yL7xwGROjETNDkFcEUzksvH9wMBsTrJhnYFWf8A56E0c6MkgUnwaOYSqxAFDe39vVSbV 4baTDIic9NDTmhGt7YvqiFzOsgQrFerpusspI80PIZxCEMD9LqYBoF2OchToPaxcJkmD b1CSS4hbXdodoZdCOxbB4eNBcvwYV0IBF5E7ZYktHmEU9fO5az9BvXdPGOZI3NE+kVEp kO4ZHwW03Uu3wGhAQcsmDVeatfNyszezdww8RpfjlMtArHl8RVlppQ8zTKP3n9I+EJfA KVMA== X-Gm-Message-State: ACrzQf1Wrt/71XkI2wS63RlgP4gvlX4pOc1TQ7p4AIX20pC9fiqzbQF4 eiPetsCTCt9cId+dYOyUp+vZRZcQtCg= X-Google-Smtp-Source: AMsMyM6mthBgbISFuM+LmLMPzf4/ZSvm6ZPlMnrOKEQ1b9NCFQRrhN0Pg6YCDCnnFVF6ysj0vgGYnQ== X-Received: by 2002:a05:600c:548c:b0:3c6:d8dd:2a72 with SMTP id iv12-20020a05600c548c00b003c6d8dd2a72mr27473968wmb.179.1666272502436; Thu, 20 Oct 2022 06:28:22 -0700 (PDT) Received: from localhost.localdomain ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id q3-20020a1c4303000000b003a8434530bbsm2864668wma.13.2022.10.20.06.28.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 06:28:22 -0700 (PDT) From: zimoun Date: Thu, 20 Oct 2022 15:28:13 +0200 Message-Id: <20221020132814.1549436-3-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20221020132814.1549436-1-zimon.toutoune@gmail.com> References: <20221020132814.1549436-1-zimon.toutoune@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666280712; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=k93FrHUqlvt2mmoGNM7/7VctIt/0Tm1TTFJNSKrPwQM=; b=tYj1EHK6vyDjP+pmQOOXXRSopfUmIQSPCMpPbA+ENP/1k5EnnyLj3ZBjJAXq2fq0dGVdMZ NDowFjFZPxVd91nKAusa6oLu7jmqG7WscWyJCfEk98z1yXt11184tOkg2LIphKHokAf/KL R9RAi4LR5dGK0KkoBkr9aN/D0dgd9Q8ne2/CZ927heRDdtELADx9bcBdaNVCUhzH/iQGMU 0iRSjMM6bHyKo/GrMxXnJPd8/4zCS2a6lvBYd+eker2p9pWjlHoVhIYDhaf0H0FFgJpWns HKS42BiSWNrOIchD2iSK7h7pIrETNp4fTUH/4822Zj20qxywFEHRFYWGDTR8JQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666280712; a=rsa-sha256; cv=none; b=sh+rfdq9B5PFkeaZ9euessoD+d7oCGx8XEOX+i7KhAdVu1qaRFnkm26lk3pDuXvn6rK41r KXbosSWUi7XOpCYmR6Iq3gOyCfI40mo5bFsRyRAhSrcDm91mo0Q0n719CzFFIvYiYuGyIC Rzrajns2kxy1EAeUv/XZ9kycPNKylojorS0SDQbImv7OTOLjQU7xF86btWWdq2BduxCq3P dk90hfpVEYwfUVb+7EQsWatoaNd2dE4PVxjQLP5uwE3yYFOZSL1Tnb1cJA8FGaG9j3f9ST EUifEj8GaSGsfHRxy9ZpxWEmDF3nAOVVr83bckcs9EXeRZGXvJu9WwmjnQasGA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=p8LBnTnr; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 6.57 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=p8LBnTnr; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: EC7D135565 X-Spam-Score: 6.57 X-Migadu-Scanner: scn1.migadu.com X-TUID: 2kksntRcOQcE * etc/teams.scm.in (list-teams): Sort teams by id. --- etc/teams.scm.in | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/etc/teams.scm.in b/etc/teams.scm.in index 8e18a5d206..3d4c7319c2 100644 --- a/etc/teams.scm.in +++ b/etc/teams.scm.in @@ -556,8 +556,8 @@ (define (list-teams) "Print all teams, their scope and their members." (define port* (current-output-port)) (define width* (%text-width)) - (hash-for-each - (lambda (key team) + (for-each + (lambda (team) (format port* "\ id: ~a @@ -584,7 +584,11 @@ (define width* (%text-width)) string<=?))))) (list-members team port* "+ ") (newline)) - %teams)) + (sort + (hash-map->list (lambda (key value) value) %teams) + (lambda (team1 team2) + (stringstring (team-id team1)) + (symbol->string (team-id team2))))))) (define (diff-revisions rev-start rev-end) -- 2.36.0