Two tables with same data but different sorting

2020-10-01 Thread Axel Kielhorn
Hello! I have a table that I want to show with two different sorting orders but I don’t want to maintain the data twice. * Table 1 | Manufacturer| Name| Price | |-+-+---| | ACME| super cheep | 25 $ | | Roadrunner Inc. | Kaboom | 27

Re: Two tables with same data but different sorting

2020-10-01 Thread John Kitchin
You could do something like this: * Table 1 #+name: table1 | Manufacturer| Name| Price | |-+-+---| | ACME| super cheep | 25 $ | | Roadrunner Inc. | Kaboom | 27 $ | | ACME| cheep | 30 $ | #+RESULTS: resorted | Manu

Re: Two tables with same data but different sorting

2020-10-01 Thread Axel Kielhorn
> Am 01.10.2020 um 14:21 schrieb John Kitchin : > > You could do something like this: > > > * Table 1 > > #+name: table1 > | Manufacturer| Name| Price | > |-+-+---| > | ACME| super cheep | 25 $ | > | Roadrunner Inc. | Kaboom | 27

Re: Two tables with same data but different sorting

2020-10-01 Thread John Kitchin
Glad it was helpful. You might also try (seventh row1) or (nth 6 row1). I think it is the same thing, but more obvious to read! John --- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412

Re: Two tables with same data but different sorting

2020-10-01 Thread Axel Kielhorn
> Am 01.10.2020 um 17:47 schrieb John Kitchin : > > Glad it was helpful. You might also try (seventh row1) or (nth 6 row1). I > think it is the same thing, but more obvious to read! I agree that „first second …“ would be easier for an english speaker. Having the ordinal number 1 based but the

Re: Two tables with same data but different sorting

2020-10-02 Thread Robert Pluim
> On Fri, 2 Oct 2020 08:25:03 +0200, Axel Kielhorn > said: >> Am 01.10.2020 um 17:47 schrieb John Kitchin : >> >> Glad it was helpful. You might also try (seventh row1) or (nth 6 row1). I think it is the same thing, but more obvious to read! Axel> I agree that „first s

Re: Two tables with same data but different sorting

2020-10-02 Thread John Kitchin
I don't know of something built in, but dash provides a few things sort of like that: #+BEGIN_SRC emacs-lisp :results raw (-last-item '(a b c)) #+END_SRC #+RESULTS: c #+BEGIN_SRC emacs-lisp :results raw (-slice '(a b c) -1) #+END_SRC #+RESULTS: (c) #+BEGIN_SRC emacs-lisp :results raw (-take-

Re: Two tables with same data but different sorting

2020-10-05 Thread Axel Kielhorn
> Am 02.10.2020 um 11:36 schrieb Robert Pluim : > >> On Fri, 2 Oct 2020 08:25:03 +0200, Axel Kielhorn >> said: > >>> Am 01.10.2020 um 17:47 schrieb John Kitchin : >>> >>> Glad it was helpful. You might also try (seventh row1) or (nth 6 row1). I >>> think it is the same thing, but m

Re: Two tables with same data but different sorting

2020-10-05 Thread Robert Pluim
> On Mon, 5 Oct 2020 10:08:08 +0200, Axel Kielhorn > said: >From the docstring: >> Return the last link of LIST. Its car is the last element. Axel> But I get: Axel> Wrong type argument: stringp, ("30 $“) You need to do (car (last ...)) and you'll want some calls to 'strin

Re: Two tables with same data but different sorting

2020-10-05 Thread Axel Kielhorn
> Am 05.10.2020 um 10:32 schrieb Robert Pluim : > >> On Mon, 5 Oct 2020 10:08:08 +0200, Axel Kielhorn >> said: > > From the docstring: >>> Return the last link of LIST. Its car is the last element. > >Axel> But I get: >Axel> Wrong type argument: stringp, ("30 $“) > > You n

Re: Two tables with same data but different sorting

2020-10-05 Thread Robert Pluim
> On Mon, 5 Oct 2020 11:21:24 +0200, Axel Kielhorn > said: >> Am 05.10.2020 um 10:32 schrieb Robert Pluim : >> >>> On Mon, 5 Oct 2020 10:08:08 +0200, Axel Kielhorn said: >> >> From the docstring: Return the last link of LIST. Its car is the last elem