I have an array, with two properties in each element:
var player = [{uid: 15, order: 567},
{uid: 4, order: 789},
{uid: 27, order: 123},
{uid: 1, order: 654}];
I want to sort the array ascending by the order property. So the result would be:
player = [{uid: 27, order: 123},
{uid: 15, order: 567},
{uid: 1, order: 654},
{uid: 4, order: 789}];