Skip to content

Latest commit

 

History

History
2 lines (2 loc) · 285 Bytes

README.md

File metadata and controls

2 lines (2 loc) · 285 Bytes

sortArrayOfObjects(arrayOfObjects, property)

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.