public void SortName() { var temp = Hotels.OrderBy(i => i.Name); Hotels = new ObservableCollection <HotelViewModel>(temp); }