Multiple sorting
Posted: Sun Sep 01, 2013 4:04 am
This is already an undocumented feature (though it is in the user notes in the dictionary), and harkens back to earliest HC days.
Multiple stable sorting is possible with:
sort container by sortKey1 & sortKey2 & sortKey3... (works for the regular sort command as well)
I wish it were possible to modify the sortKeys independently, so that you could, say:
sort container by sortKey 1 numeric & sortKey 2 text & sortKey 3 dateTime...
How did this get into LC at all, being an undocumented HC gadget? Did it sneak in? At least it should be part of the mainstream dictionary entry.
Craig Newman
Multiple stable sorting is possible with:
sort container by sortKey1 & sortKey2 & sortKey3... (works for the regular sort command as well)
I wish it were possible to modify the sortKeys independently, so that you could, say:
sort container by sortKey 1 numeric & sortKey 2 text & sortKey 3 dateTime...
How did this get into LC at all, being an undocumented HC gadget? Did it sneak in? At least it should be part of the mainstream dictionary entry.
Craig Newman