Sorts an array of objects based on a specified property.
The type of the objects in the array.
The array to sort.
The property to sort by.
Sorts an array of objects based on a specified property.