From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Patch to implement sorting Org tables by IP address Date: Fri, 12 Dec 2014 23:58:09 +0100 Message-ID: <87r3w4a326.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzZ9I-0002oN-B0 for emacs-orgmode@gnu.org; Fri, 12 Dec 2014 17:57:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XzZ97-0004VO-S6 for emacs-orgmode@gnu.org; Fri, 12 Dec 2014 17:57:23 -0500 Received: from relay5-d.mail.gandi.net ([2001:4b98:c:538::197]:43012) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzZ97-0004VK-Lq for emacs-orgmode@gnu.org; Fri, 12 Dec 2014 17:57:13 -0500 In-Reply-To: (Jon Snader's message of "Tue, 09 Dec 2014 14:16:28 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jon Snader Cc: emacs-orgmode@gnu.org Hello, Jon Snader writes: > There is currently no easy way to sort an Org table by IP address. The > only method I could find involves selecting the IP addresses in > a rectangle and piping them to sort with a complicated sort recipe. > Even though I am not a system administrator, I sometimes need to > maintain tables that I=E2=80=99d like to keep sorted by IP address. > > The attached patch implements sorting Org tables natively. Thank you for your patch. However I think the feature implemented is too specific. Instead, `org-do-sort' could provide a way to pass an arbitrary predicate, like ?f and ?F in `org-sort-list'. WDYT? Regards, --=20 Nicolas Goaziou