What's the best way to sort an array of objects in JavaScript without using any libraries like lodash or underscore?
I have an array of objects and I would like to sort the array by a specific property. What's the most efficient way to do this without using any external libraries?
Gautham
How do you comfort a JavaScript bug? You console it.. Hahaha...... Ok.
Checkout the native sort function, it's handy.
But, if you are going to deal with large arrays, probably implement any sorting algorithm of your own.(Quick, Insert etc.)
References: #1, #2