Skip to content

Aro1914/Sorting-an-Array-of-Objects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.