Best Sorting Algorithm In Javascript Object Methods