   [.net] Sorting enums in Silverlight's DataGrid (override IComparable on an enum?)
  I have a Silverlight application that makes use of a DataGrid to display data.Some of the columns contain drop-down boxes that are populated by the contents of enums. For example, a column for Sex may refer to:enum Sex {    Male = 1,    Female = 2,};Now, I'd like to be able to sort said columns alphabetically, except Silverlight seems to sort by the internal data rather than by the value output by the data converter, so displays Male (1) before Female (2).Is there an easy way around this? Can you override an enum's IComparable?I have seen this blog post but it's a positively insane quantity of work to achieve something so basic, and I'm convinced that there must be an easier way to solve this issue.Edit: Of course, there's always this hack:enum Sex {    Male = 20000 + 1,    Female = 10000 + 2,};...then use % to retrieve the actual value.Edit 2: Except that that requires that each record has its enum values skewed as well, which makes things "interesting".[Edited by - benryves on May 6, 2009 12:24:00 PM]