From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: Re: [more absurd]
Date: Sun, 03 Jul 2022 21:29:15 +0200 [thread overview]
Message-ID: <87iloeatbo.fsf@mat.ucm.es> (raw)
In-Reply-To: E1o84yk-0002Rr-Do@lists.gnu.org
[-- Attachment #1: Type: text/plain, Size: 1227 bytes --]
>>> "BB" == Bruno Barbier <brubar.cs@gmail.com> writes:
> Uwe Brauer <oub@mat.ucm.es> writes:
>> Consider
>>
>> | 2 |
>> | 1 |
>> | 1 |
>> | 0 |
>> | |
>> | |
>>
>> (org-table-sort-lines nil nil nil nil t) (numerically 'n' gives)
> ...
>>
>> So no empty lines, what the hell is going on here?
> The reason is probably that the function 'string-to-number' return 0 for
> anything that cannot be converted to a number.
> Thus, as far as sorting is concerned, "not a number cells" and "cells
> containing zeros" are the same and can be put in any arbitrary order.
I am confused:
https://en.wikipedia.org/wiki/Natural_number
States that Some definitions, including the standard ISO 80000-2,[3][a] begin the natural numbers with 0, so I thought this is standard emacs/org uses. This seems not to be the case, am I right
the funny thing is if I chose
(org-table-sort-lines nil nil nil nil t) alphabetically
It does the right thing, bizarre.
Uwe
--
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military.
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine.
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]
next prev parent reply other threads:[~2022-07-03 19:30 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-01 5:31 org-table-sort-lines (numerically) leaves 0 separated Uwe Brauer
2022-07-03 18:26 ` [more absurd] (was: org-table-sort-lines (numerically) leaves 0 separated) Uwe Brauer
2022-07-03 19:11 ` Bruno Barbier
2022-07-03 19:29 ` Uwe Brauer [this message]
2022-07-03 19:44 ` [more absurd] Bruno Barbier
2022-07-03 19:58 ` Uwe Brauer
2022-07-03 20:14 ` Bruno Barbier
2022-07-03 20:24 ` Uwe Brauer
2022-07-04 4:31 ` tomas
2022-07-04 5:10 ` Uwe Brauer
2022-07-04 6:23 ` tomas
2022-07-04 6:46 ` Martin Steffen
2022-07-04 7:42 ` Uwe Brauer
2022-07-04 12:16 ` tomas
2022-07-04 13:59 ` Uwe Brauer
2022-07-04 12:12 ` tomas
2022-07-04 13:18 ` Martin Steffen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87iloeatbo.fsf@mat.ucm.es \
--to=oub@mat.ucm.es \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).