How does one order a list of classes by a dictionary key within the class eg...
List<City> cities;
Public Class City
{
public Dictionary<string, string> CityAttributes;
}
In this scenario, I want to order the cities
list by a particular string in the dictionary CityAttributes
.
eg London Paris New York
Each city has a CityAttribute dictionary...
<"Population over 6 million", "Yes">
<"Radius more than 15 miles", "No">
<"Currency","Euro">
I want to order the cities by Currency. The resulting list would be: New York Paris London