public void SortRating() { var temp = Hotels.OrderByDescending(i => i.Rating); Hotels = new ObservableCollection <HotelViewModel>(temp); }