* Re: M-x sort-fields [not found] <mailman.1037917702.29749.help-gnu-emacs@gnu.org> @ 2002-11-21 23:58 ` Barry Margolin 2002-11-22 15:09 ` jrivers77 [not found] ` <mailman.1037978603.28367.help-gnu-emacs@gnu.org> 0 siblings, 2 replies; 4+ messages in thread From: Barry Margolin @ 2002-11-21 23:58 UTC (permalink / raw) In article <mailman.1037917702.29749.help-gnu-emacs@gnu.org>, <Raimund.Kohl@freenet.de> wrote: >Hello, > >I do have files with coloumns of either text or digits and want to sort >them by date. How do I do that? If I use M-x sort-field it doesn't accept >a numeric argument ... at least not the way I try to put it in. Here an >example: > >blahblah & 12.2. & 132,40 & 10,20 >blubblub & 15.5. & 15,40 & 2,23 >bleblebb & 1.4. & 10,00 & 1,00 > >I want to sort the lines according the date of the third column (given the >"&" sign is a column of it's own). If I understood the manual correctly I >am to mark the "b" of the first line and the "0" of the last line and then >command M-x sort-fields with the column as a numeric argument to which it >all lines shall become sorted. Anybody to help me here? M-3 M-x sort-fields is the way to specify that it should sort on column 3. When I do that, I get: >bleblebb & 1.4. & 10,00 & 1,00 >blahblah & 12.2. & 132,40 & 10,20 >blubblub & 15.5. & 15,40 & 2,23 Note that the sort is lexicographic, not numeric, so 8.4 will go *after* 12.2. -- Barry Margolin, barmar@genuity.net Genuity, Woburn, MA *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups. Please DON'T copy followups to me -- I'll assume it wasn't posted to the group. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: M-x sort-fields 2002-11-21 23:58 ` M-x sort-fields Barry Margolin @ 2002-11-22 15:09 ` jrivers77 [not found] ` <mailman.1037978603.28367.help-gnu-emacs@gnu.org> 1 sibling, 0 replies; 4+ messages in thread From: jrivers77 @ 2002-11-22 15:09 UTC (permalink / raw) Barry Margolin <barmar@genuity.net> writes: > In article <mailman.1037917702.29749.help-gnu-emacs@gnu.org>, > <Raimund.Kohl@freenet.de> wrote: > > M-3 M-x sort-fields > > is the way to specify that it should sort on column 3. When I do that, I > get: > > >bleblebb & 1.4. & 10,00 & 1,00 > >blahblah & 12.2. & 132,40 & 10,20 > >blubblub & 15.5. & 15,40 & 2,23 > > Note that the sort is lexicographic, not numeric, so 8.4 will go *after* > 12.2. > And if you want them sorted numerically, you can use sort-numeric-fields in the same way. -- JC ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <mailman.1037978603.28367.help-gnu-emacs@gnu.org>]
* Re: M-x sort-fields [not found] ` <mailman.1037978603.28367.help-gnu-emacs@gnu.org> @ 2002-11-24 14:46 ` Kai Großjohann 0 siblings, 0 replies; 4+ messages in thread From: Kai Großjohann @ 2002-11-24 14:46 UTC (permalink / raw) jrivers77@yahoo.com writes: > And if you want them sorted numerically, you can use > sort-numeric-fields in the same way. Well, but sorting European date format numerically doesn't make sense, either. For instance, 1.4 > 1.10 but 1 April is less than 1 October... Maybe Raymund can tell LaTeX to accept ISO-ish dates as input and to print European date format. Then sorting lexicographically will DTRT. kai -- ~/.signature is: umop ap!sdn (Frank Nobis) ^ permalink raw reply [flat|nested] 4+ messages in thread
* M-x sort-fields @ 2002-11-21 23:24 Raimund.Kohl 0 siblings, 0 replies; 4+ messages in thread From: Raimund.Kohl @ 2002-11-21 23:24 UTC (permalink / raw) Hello, I do have files with coloumns of either text or digits and want to sort them by date. How do I do that? If I use M-x sort-field it doesn't accept a numeric argument ... at least not the way I try to put it in. Here an example: blahblah & 12.2. & 132,40 & 10,20 blubblub & 15.5. & 15,40 & 2,23 bleblebb & 1.4. & 10,00 & 1,00 I want to sort the lines according the date of the third column (given the "&" sign is a column of it's own). If I understood the manual correctly I am to mark the "b" of the first line and the "0" of the last line and then command M-x sort-fields with the column as a numeric argument to which it all lines shall become sorted. Anybody to help me here? Thank you in advvance ray ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-11-24 14:46 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <mailman.1037917702.29749.help-gnu-emacs@gnu.org> 2002-11-21 23:58 ` M-x sort-fields Barry Margolin 2002-11-22 15:09 ` jrivers77 [not found] ` <mailman.1037978603.28367.help-gnu-emacs@gnu.org> 2002-11-24 14:46 ` Kai Großjohann 2002-11-21 23:24 Raimund.Kohl
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).