* Main.cs: Sort functions by extension first, then by name.

This commit is contained in:
the_fiddler 2009-08-03 21:41:35 +00:00
parent 34613184b8
commit 794a742fcb

View file

@ -123,7 +123,9 @@ namespace CHeaderToXML
{
new XElement("signatures",
entries.Values.OrderBy(s => s.Attribute("name").Value), // only enums
sigs.SelectMany(s => s).Where(s => s.Name.LocalName == "function").OrderBy(s => s.Attribute("name").Value) // only functions
sigs.SelectMany(s => s).Where(s => s.Name.LocalName == "function") // only functions
.OrderBy(s => s.Attribute("extension").Value)
.ThenBy(s => s.Attribute("name").Value)
).WriteTo(writer);
writer.Flush();
writer.Close();