From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id YDnBBIU732akRAAAqHPOHw:P1 (envelope-from ) for ; Mon, 09 Sep 2024 18:16:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id YDnBBIU732akRAAAqHPOHw (envelope-from ) for ; Mon, 09 Sep 2024 20:16:37 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Kk3GsAOC; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1725905796; 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=Lxun3oEVjAR7VNpI8X6YvHPwOP7AjfwrKy4Jo7+sJik=; b=hk6yHN3cDjZGAW80vQl73W8KdCWaJ7bvRKtL4w9FAo9tve84aLIwYsvXprPfLglCpfpgV2 hHN38KqRbwFJ7Iscxr/BEzlnIESI7gbqmxy1zlvmR14dA4fw+kxPtEu/FZ0H3muoiah5Xt B0FjaaQ2PukmgOlb43j5aCF4JmvQWSiD1onf2/NGOOvnwlrA7G5Keffje0ult8zTPfjWnm 5khOW97fVLsBwSBkkpvDYj0XTXnv6t2a/1hYr81jQwlPaO+iyTrRxNjROgwgEoCRZmhZKX GgWW16KCRZyOyIwnhJTFpdVQKoufatCujSBOOhLQkqT6ehrSZqCsi3afdPpVQA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725905796; a=rsa-sha256; cv=none; b=jjmwydFh0IXN4ZPCKz2LcmjNwBbNKMzMChyyWMn7kQ7WEazuN3LEF1zzOGED6zXFy8/aff tQlwGN7wk/65e/lt+LXFjUjq8/R6zLShTg25RettCj109/Sx66tfLph7iv2r3hFEWPJ7qg RUaCpUtGv/YcUG6fXkxsb7n81KP0DckkTg1ciMrSjOEOaYvmpC91PwVajCf8eeJTH6p10j h0kxi2lu0gFGio3Hb+SolWRCJHyVjXESLWMAH5gLhU34oq3+fp3i7Bogx0bvPFMK3OWHqT 8aeWLGmZO+2AZS02c/Ek95P0sBoX/Y9vr4RkAQFtTMgHJnZe3bc+0PU80FWuqg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Kk3GsAOC; dmarc=pass (policy=none) header.from=posteo.net; 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" 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 2D4C48D761 for ; Mon, 9 Sep 2024 20:16:36 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1snivT-000898-Fp; Mon, 09 Sep 2024 14:15:47 -0400 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 1snivQ-0007zw-Uu for emacs-orgmode@gnu.org; Mon, 09 Sep 2024 14:15:45 -0400 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 1snivO-0002m3-Q9 for emacs-orgmode@gnu.org; Mon, 09 Sep 2024 14:15:44 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 56153240027 for ; Mon, 9 Sep 2024 20:15:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1725905739; bh=cxA2qAZQhGuxH0oSiGWr1G6vH/BEVDznmH0Ft0FlmQ4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=Kk3GsAOCRxsoU0emk2aWznvLWu+bxYWV+m2n8hdwRi2COk9mtt+Mfvp4qdGIJyokh Ew8XDvSjUAgNzowPrUOXpE9HPJMzmH6zIPdQ5HhgIdr7U2zzt/wakwf32J0kbKvl2x uUl7x0o6fQP1uQUTLS/H5VsLcJeFE+8EZyaqSXQC9eYP4DVqtDmJdqnjHDv5kisgCd qk7NYeH5/vbbnnr1z6uq9ZTihz9A4Kj/geE8NZ4y8E7W2XOywZWBE1Mtr8UttsODQx /8vDInzvWqyG0drJpFCqb6OyIrX/NdUNKzWoVQhnMb4MmIuRqXkj/+KwVjVxuzCeIS V1zSiqfmeoGAQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4X2Zky6kzsz9rxG; Mon, 9 Sep 2024 20:15:38 +0200 (CEST) From: Ihor Radchenko To: Kepa Cc: "emacs-orgmode@gnu.org" Subject: Re: Inconsistent org-sort numeric In-Reply-To: <172566430047.7.10798428441467751145.427033811@slmails.com> References: <172566430047.7.10798428441467751145.427033811@slmails.com> Date: Mon, 09 Sep 2024 18:17:05 +0000 Message-ID: <874j6opu8u.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, 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-Queue-Id: 2D4C48D761 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.71 X-Spam-Score: -9.71 X-TUID: YEfT15V4aneL Kepa writes: > It seems inconsistent, org-sort numeric. > If org-sort numeric is applied to each of these one level headlines, the order is different in both (tested with emacs -q): > > > * Inconsistent org-sort. M-x org-sort numeric > ** !Cuatro > ** ~Cinco > ** Tres > ... > > ** Tres > ** !Cuatro > ** ~Cinco Your example is ambiguous. How exactly do you expect _numeric_ sort to order non-numbers? As an implementation detail, org-sort treats all the non-numbers as 0-es. It also does not re-order items with the same sorting key. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at