seems ok to me but my list still isn't ordered by my key.
var tagNamesAndRoutes = new Dictionary<string, string>();
foreach (string name in tagNames)
{
tagNamesAndRoutes.Add(name, routeConstant);
}
Example of dictionary values:
Key Value
"NUnit" "/Category"
"WCF" "/Category"
"ReSharper" "/Category"
and so on.
I tried to sort it via typical LINQ:
tagNamesAndRoutes.OrderBy(c => c.Key);
but it's not sorted after the fact.