diff options
author | <rob.taylor@collabora.co.uk> | 2006-01-16 22:53:13 +0000 |
---|---|---|
committer | <rob.taylor@collabora.co.uk> | 2006-01-16 22:53:13 +0000 |
commit | 0479700d7cf14c70e9479edcea1bab2a31566b95 (patch) | |
tree | cf6b5ab9c2359005e9f08a7d241cb5df06f3c60b /tools | |
parent | 0364bcd6e0d974f93cd2403c295dc69de4ed380d (diff) |
made sorting of method names actually work thanks to Robert
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gengobject.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gengobject.py b/tools/gengobject.py index 5736072..2d98823 100644 --- a/tools/gengobject.py +++ b/tools/gengobject.py @@ -210,9 +210,9 @@ if __name__ == '__main__': cmdline_error() signals = dom.getElementsByTagName("signal") - signals.sort() + signals.sort(key=lambda n: n.getAttributeNode("name").nodeValue) methods = dom.getElementsByTagName("method") - methods.sort() + methods.sort(key=lambda n: n.getAttributeNode("name").nodeValue) print_license(header, outname_header, "Header for " + classname) print_license(body, outname_body, "Source for " + classname) |