Fixed Type.GetEnumNames sort order (it's specified on MSDN). Previously this method...
authorJames Bellinger <jfb@zer7.com>
Sun, 8 Jul 2012 04:31:57 +0000 (00:31 -0400)
committerJames Bellinger <jfb@zer7.com>
Sun, 8 Jul 2012 04:31:57 +0000 (00:31 -0400)
commit45b121ce8b1414e8db506c17803bc1a535a26b6f
tree4dd24810bee3cec49c6cb87a8c6cffb42f3afeec
parentd16d4623edb210635bec3ca3786481b82cde25a2
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.
mcs/class/corlib/System/Enum.cs
mcs/class/corlib/System/Type.cs
mcs/class/corlib/Test/System/TypeTest.cs