mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-06-19 11:28:01 +00:00
* Main.cs: Sort functions by extension first, then by name.
This commit is contained in:
parent
96033ee43b
commit
11c81f525b
|
@ -123,7 +123,9 @@ namespace CHeaderToXML
|
||||||
{
|
{
|
||||||
new XElement("signatures",
|
new XElement("signatures",
|
||||||
entries.Values.OrderBy(s => s.Attribute("name").Value), // only enums
|
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);
|
).WriteTo(writer);
|
||||||
writer.Flush();
|
writer.Flush();
|
||||||
writer.Close();
|
writer.Close();
|
||||||
|
|
Loading…
Reference in a new issue