JS: Sort an array of objects based on a search or specified properties | Heykuki News