9 Feb 22:05
sort on two keys
Mohamed Bana <mohamed <at> bana.org.uk>
2010-02-09 21:05:41 GMT
2010-02-09 21:05:41 GMT
Hi All,
What would be the equivalent of the C# program below?
var counts = new Dictionary<string, int>();
var sortedDict =
from entry in counts
orderby entry.Value descending, entry.Key ascending
select entry;
that is, sort by max no. then alphabetically.
—Mohamed
RSS Feed