- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
List<LocalBusiness> sortedLocalBusinesses = new List<LocalBusiness>();
foreach (LocalBusiness business in foundLocalBusinesses)
{
if (!business.Logo.UrlSmall.Equals("/images/local_business_default_logo.png"))
{
sortedLocalBusinesses.Add(business);
}
}
foreach (LocalBusiness business in foundLocalBusinesses)
{
if (business.Logo.UrlSmall.Equals("/images/local_business_default_logo.png"))
{
sortedLocalBusinesses.Add(business);
}
}
Сортировка - первыми должны быть объекты с не дефолтными картинками.
guest 11.05.2012 12:14 # 0
PetrovSerega 11.05.2012 15:45 # +7
3.14159265 11.05.2012 19:40 # 0
Говногость 11.05.2012 20:36 # +6
guest 11.05.2012 13:05 # +2