Reversed Sorted Dictionary?

Posted by Mark on Stack Overflow See other posts from Stack Overflow or by Mark
Published on 2010-05-06T21:24:49Z Indexed on 2010/05/06 21:28 UTC
Read the original article Hit count: 164

Filed under:

I have a SortedDictionary as defined like this:

SortedDictionary<TPriority, Queue<TValue>> dict;

But I want to sort the keys in reverse order. I assume I need set the Comparer, but what comparer do I use for a generic TPriority? Note that TPriority implements IComparable.

© Stack Overflow or respective owner

Related posts about c#