[mono-api-info] Order interfaces.
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Mon, 7 Sep 2015 10:56:18 +0000 (12:56 +0200)
committerRolf Bjarne Kvinge <rolf@xamarin.com>
Mon, 7 Sep 2015 11:06:01 +0000 (13:06 +0200)
So that info files can be compared textually to test for api equality.

mcs/tools/corcompare/mono-api-info.cs

index a689210b12bbcd6a1a791cef41794be3e1a4378c..648a538622d39944ba596c40e3a5c8d1e228263f 100644 (file)
@@ -416,7 +416,7 @@ namespace CorCompare
 
                        XmlNode ifaces = null;
 
-                       foreach (TypeReference iface in  TypeHelper.GetInterfaces (type)) {
+                       foreach (TypeReference iface in TypeHelper.GetInterfaces (type).OrderBy (s => s.FullName)) {
                                if (!TypeHelper.IsPublic (iface))
                                        // we're only interested in public interfaces
                                        continue;