Added sortByProperty func