Aro1914 / Sorting-an-Array-of-Objects-For-Server-Side

This is a helper function that sorts an array of objects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sortArrayOfObjects(arrayOfObjects, property) (For Server-Side)

This is a helper function that sorts an array of objects. It does this by using the property passed as an argument to sort the objects in the array. If successful, returns the sorted array of objects, else the original array is returned.

About

This is a helper function that sorts an array of objects.

License:Apache License 2.0


Languages

Language:JavaScript 100.0%