Possible Duplicate:
How to sort an array of javascript objects?
Every time I mess with writing my own quicksort it ends up taking a lot longer than I initially thought. I've got a pretty small array but would still like to have a quicksort handy.
Something like
quicksort(myObjectArray) {
//myObject[i].key is what the sort is done on
}
I actually did Google this so if you post a link to any of the first three or four pages on Yahoo or Google complete with obviously incomplete code else why would I be asking here... then you are wasting your life away trolling on stackoverflow and not actually answering anything.