Quick Tip: How to Sort an Array of Objects in JavaScript

Olayinka Omole shows you how to dynamically sort an array of objects in JavaScript, using Array.prototype.sort() and a custom compare function. Read more

Similar

A little JavaScript problem

In fact, this isn't about JavaScript, but that's the context I've discussed it in. I encourage you to think about it in more programming languages. (are there languages in which this can't be done?)... (more…)

Read more »