COMMUNITY

Most effective sort by key

haxe-js

(Axel Huizinga) #1

how is the best approach to sort such a list by key?

list = [
{ name: ‘Brian Vaughn’, description: ‘Software engineer’ }
// And so on…
];


(Valentin Lemière) #2

You can use the sort method, like this: https://try.haxe.org/#7081a
with possibly a better sort function :wink: