public static void SortShops() { var shops = Shops.ToList(); shops.Sort(new ShopComparer()); Shops.Clear(); foreach (var shop in shops) { Shops.Add(shop); } }
/// <summary> /// Gets the shops. /// </summary> /// <returns>The shops.</returns> public IList <Shop> GetShops() { return(Shops.ToList()); }