A jquery function which sorts an array of objects by a specified numeric property