From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id IEk/B5W/a2drZwAAe85BDQ:P1 (envelope-from ) for ; Wed, 25 Dec 2024 08:17:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id IEk/B5W/a2drZwAAe85BDQ (envelope-from ) for ; Wed, 25 Dec 2024 09:17:25 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="riwGbm/O"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735114645; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=qeWiLN7geuYOQf14H2pd7uoJBLmJxr+cAyZtfxDA4x8=; b=fyQPCiHjSoObvJmhXJ/YJ8mMsX20+6X7NWo/xBO48x+TyUZfyT3ENX9Je7+zdOBGRYFh1Q 3PLdAypB8kuSZigUDb+NGRQ3iqPihkSUAHxKypkfFfft7mtsItcDeLgoS7OGiBBZJ+3JuB cKkae92i3/qluz8puYncIB/+9BIgcfzBp/Wj7GUOf1zr206eisXpNSWJJybxHQfE2EaC7C enP8EljBEX6a7j5RqwK/bCHlPhNdhXH4bk1MkvrRvoqTHD5eGvLFtlRkQsUeYbsgt6JWly arhgkdNpnHTaRilbL/7jCvLvwje7LnTz7oCSF2wrYYnUClgY/P5+zaLmLdwWBw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="riwGbm/O"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735114645; a=rsa-sha256; cv=none; b=RRu8TefQLxNKB6Hd0ZVAzYKF+VlZdfyyyHUyDogXNZ9/3HaUtVtrkKD9TKUGBZIOhPFCjd kEOSOisbM52ZZBgCvGa24muWEDMmN3bPjEYC+NoaY/AqF5aU4SQvlS5WdddFL3yI7BF7Eu 1qhFZFM1d2lv5jk6q+3UUk+Jx2pxj5MwpzB3qMzAJJO10k4IAvxk5m3zeESgdNGvgIgUkD yfrRUus7Udlq/zZl0sAyMG6/jCfXa6EBPDW3P4rcBkToQtDI2bEEmYW9DmkcHETXviBiOu gX1QPuc/oFm2edvw5StiVObzSrQOCp2anVOGVYmFbVAnQRaXssCLa9JtAMQ9HQ== 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 C5E64820E7 for ; Wed, 25 Dec 2024 09:17:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQMZO-0000x3-4a; Wed, 25 Dec 2024 03:16:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tQMZM-0000wv-AP for emacs-orgmode@gnu.org; Wed, 25 Dec 2024 03:16:40 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tQMZF-0004dx-Vs for emacs-orgmode@gnu.org; Wed, 25 Dec 2024 03:16:37 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E285D240027 for ; Wed, 25 Dec 2024 09:16:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1735114583; bh=pabrSb9FG3DCS6EhbN4K8GaeLthLtlyyG+QSLD8TAFs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=riwGbm/OU/ZracGYC05TFln2UxYalXTwRfxzNEte5frjWSNMOaPpz9LotBtqfKyd7 kTYjezk6Ia4TnrdWv+ff6qc1Pwv7jy14++nJyl88Dj4wZf0Mt6CxqH/WFNOjM25HH9 49i93h0u7RUYZ6GDnYg42hu80Vc1aK8Mbt2D/O2oAv7gP7Al3djcEXTtROk56t9dbp xBgB+U2hbTK75vNYBpqMyeihecv8JC1SxaYvdSsfCfM+aJiRJfgkdoI/nO1f4e1VDz bkiPaxi0LBe8pMMrzhSGr3YI7vc6wi4cQIGbcfnek7kpaL0S7dwTpVPon8OUjSekCi ih50YYkGceBgQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YJ4N70Prfz9rxB; Wed, 25 Dec 2024 09:16:22 +0100 (CET) From: Ihor Radchenko To: Morgan Smith Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] lisp/org.el: Add ability to sort tags by hierarchy In-Reply-To: References: <874j9ugu57.fsf@localhost> Date: Wed, 25 Dec 2024 08:17:54 +0000 Message-ID: <87ttas18i5.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -9.18 X-Spam-Score: -9.18 X-Migadu-Queue-Id: C5E64820E7 X-TUID: dAPKzznEW5AE Morgan Smith writes: >> Also, what happens when there >> are no tag groups defined? (These questions should be answered in the >> docstring and the etc/ORG-NEWS entry you need to add, announcing the new >> feature) > > Fallback to `org-sort-function'. I am not sure if it is the best idea to hard-code using `org-sort-function' here. What if a user wants specific `org-sort-function' for, say, table sorting, but something else for tags? Secondary sorting would better be customizeable. Maybe you can have a function generator that will work like (org-tags-sort-hierarchy-by org-sort-function) or (org-tags-sort-hierarchy-by #'string<) -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at