emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [more absurd]


From: Uwe Brauer
Subject: Re: [more absurd]
Date: Sun, 03 Jul 2022 21:29:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

>>> "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: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]