From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Banel Subject: Re: Table sorting on two or more columns? Date: Sat, 18 Jan 2014 11:27:14 +0100 Message-ID: <52DA5702.200@free.fr> References: <6b75e659-b088-4a26-93fb-1e8864110132@dewdrop-world.net> Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4T7e-0002Mu-Pv for emacs-orgmode@gnu.org; Sat, 18 Jan 2014 05:27:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W4T7b-0001YP-Ly for emacs-orgmode@gnu.org; Sat, 18 Jan 2014 05:27:26 -0500 Received: from smtp3-g21.free.fr ([2a01:e0c:1:1599::12]:40014) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4T7a-0001WB-Rk for emacs-orgmode@gnu.org; Sat, 18 Jan 2014 05:27:23 -0500 Received: from [IPv6:2a01:e35:2e21:def0:855a:2651:5637:cd20] (unknown [IPv6:2a01:e35:2e21:def0:855a:2651:5637:cd20]) by smtp3-g21.free.fr (Postfix) with ESMTP id ADA3CA61F3 for ; Sat, 18 Jan 2014 11:27:15 +0100 (CET) In-Reply-To: <6b75e659-b088-4a26-93fb-1e8864110132@dewdrop-world.net> 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: emacs-orgmode@gnu.org
Le 18/01/2014 10:40, James Harkins a =C3=A9crit=C2=A0:
Is there an existing org function to sort a table based on more than one column? E.g., given:

| Type | Term=C2=A0 | Description=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |
|------+-------+--------------------------------------|
| Filt | LPF=C2=A0=C2=A0 | Butterworth lowpass filter=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |
| Filt | HPF=C2=A0=C2=A0 | Butterworth highpass filter=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |
| Osc=C2=A0 | Pulse | Band-limited pulse wave oscillator=C2=A0=C2= =A0 |
| Osc=C2=A0 | LFSaw | Non-band-limited sawtooth oscillator |
| Osc=C2=A0 | Saw=C2=A0=C2=A0 | Band-limited sawtooth oscillator=C2= =A0=C2=A0=C2=A0=C2=A0 |

... is there a variant of C-c ^ that will group the Types together in alphabetical order, and then sort each group of Terms?

hjh


Try using C-c ^ twice:
- first on Term
- then on Type

You will get:
| Type | Term=C2=A0 | Description=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |
|------+-------+--------------------------------------|
| Filt | HPF=C2=A0=C2=A0 | Butterworth highpass filter=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |
| Filt | LPF=C2=A0=C2=A0 | Butterworth lowpass filter=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |
| Osc=C2=A0 | LFSaw | Non-band-limited sawtooth oscillator |
| Osc=C2=A0 | Pulse | Band-limited pulse wave oscillator=C2=A0=C2=A0= |
| Osc=C2=A0 | Saw=C2=A0=C2=A0 | Band-limited sawtooth oscillator=C2= =A0=C2=A0=C2=A0=C2=A0 |