- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
private ArrayList SortListings(ArrayList _listings)
{
ArrayList result = new ArrayList();
ArrayList company_names = new ArrayList();
Hashtable entities = new Hashtable();
foreach (ListOfListings l in _listings)
{
try
{
entities.Add(l.ListingName, l);
company_names.Add(l.ListingName);
}
catch
{
}
}
company_names.Sort();
for (int i = 0; i < company_names.Count; i++)
{
result.Add(entities[company_names[i]]);
}
return result;
}
Комментарии (9) RSS
Добавить комментарий