How to sort an array of objects by a property value in JavaScript
Say you have an array of objects like this: You want to render this list, but first you want to order it by the value of one of the properties. For example you want to order it by the color name, in alphabetical order: black, red, white.
https://flaviocopes.com/how-to-sort-array-of-objects-by-property-javascript/