mono/mono — pull request #380 by JamesB7 (2012-07-08 04:43:05+00:00)
Title: Fixed Type.GetEnumNames sort order (it's specified on MSDN). Previously ...

...this method was returning in GetFields (declaration) order. It now returns sorted by the unsigned value of the enum as is correct.

Ran into this while calling Type.GetEnumNames and Type.GetEnumValues.
To my surprise the pairs didn't match up. Anyway, here's a fix.