emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Patch to implement sorting Org tables by IP address


From: Nicolas Goaziou
Subject: Re: [O] Patch to implement sorting Org tables by IP address
Date: Sat, 13 Dec 2014 15:29:31 +0100

Jon Snader <address@hidden> writes:

> My idea for making it table driven is to add an alist whose elements look 
> something like
>
> (prompt-char prompt extraction-function compare-function 
> reverse-compare-function with-case-extraction-function)
>
> The alist would be initialized with the built-in options (including
> the IP address sort) but a user could call add-to-list to add a custom
> sort to his or her environment.

I think my proposal is simpler: add ?f and ?F to built-in options, in
which case user is prompted for a custom sorting function (in your case,
`org-ip-lessp'). It is also more consistent with `org-sort-list'.

Also, IMO, IP address sort should not be built-in, and needs not with
the proposal above.

Regards,



reply via email to

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