[REBOL] Re: Sort by first part of line
From: joel:neely:fedex at: 8-Sep-2002 19:34
YMMV, but I typically traverse indexed data structures in order of
increasing indices; as the index goes up, the length of the data
string goes down.
-jn-
Carl Read wrote:
> On 08-Sep-02, Joel Neely wrote:
> > Hi, all,
>
> > Andrew Martin wrote:
> >>
> >> Carl Read wrote:
> >>> See? Ascending length per number.
> >>
>
> > Would you believe "descending"? !!!
>
> One ascends from the bottom up Joel - and as you go up each group of
> numbers, the lengths of the strings get longer... (;
>
> --
> Carl Read
>
> --
> To unsubscribe from this list, please send an email to
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
--
; Joel Neely joeldotneelyatfedexdotcom
REBOL [] do [ do func [s] [ foreach [a b] s [prin b] ] sort/skip
do function [s] [t] [ t: "" foreach [a b] s [repend t [b a]] t ] {
| e s m!zauafBpcvekexEohthjJakwLrngohOqrlryRnsctdtiub} 2 ]