Hi All,

The following code sorts the name-ages block by name in ascending order,
and also keeps the age with the corresponding name.

 name-ages: ["Larry" 45 "Curly" 50 "Mo" 42 "Mike" 48]
== ["Larry" 45 "Curly" 50 "Mo" 42 "Mike" 48]
>> sort/skip name-ages 2
== ["Curly" 50 "Larry" 45 "Mike" 48 "Mo" 42]

1. How would i sort to get name/ages in descending order by name ?

2. How would i sort to get name/ages in ascending order by age ?

3. How would i sort to get name/ages in descending order by age ? 

I've a feeling it's got something to do with the compare refinement, but at
this point in time, it doesn't make much sense to me.

Thanks in advance.

Mike.


Reply via email to