You have to make your own sorting function. I have a similar
one at home but can't remember the syntax exactly off the top
o-me-head. So read the help entry for Array.sort() and it will show
you how to create your own sort function.
I found mine to be a bit slow and it sped things up a lot if
I did a primary sort using sortOn and then called