Skip to content

Latest commit

 

History

History
2 lines (2 loc) · 303 Bytes

File metadata and controls

2 lines (2 loc) · 303 Bytes

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.