[REBOL] Sorting
From: depotcity::telus::net at: 16-May-2001 23:29
Hello...
Here's a exercise...
Sort the following read/lines into N: from shortest length? line to longest...
N:[]
one two three "four five six" ; length? = 4
one two "three four" ; length? = 3
one two three four five "six seven" ; length? = 6
one two three four five six "seven eight" ; length? = 7
one "two three four five" ; length? = 2
Where the string counts as 1.
So you end up with ...
N: [
one "two three four five"
one two "three four"
one two three "four five six"
one two three four five "six seven"
one two three four five six "seven eight"
]
TBrownell