Hi all, i am making a highscores table, i have this array:

var myarray = [

In other time i was use a function to sort this but i lost the code and forget it

I want sort by name, or sort by lastname, or sort by money, or sort by birth year.

Example Sorting by name:


I hope you understand my bad english. Thanks all for read this and help. Greetings