Add support for sorting an array of objects by key
Add support for sorting an array using a getter function