diff CodeAnalysis/GenerateOrthancSDK.py @ 193:66cd20e970d8 java-code-model

simplification for custom methods
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 02 Jul 2024 18:37:04 +0200
parents b0f096d2339e
children 0c5da632f34d
line wrap: on
line diff
--- a/CodeAnalysis/GenerateOrthancSDK.py	Tue Jul 02 18:25:53 2024 +0200
+++ b/CodeAnalysis/GenerateOrthancSDK.py	Tue Jul 02 18:37:04 2024 +0200
@@ -394,7 +394,7 @@
         'class_name' : c['name'],
         'short_name' : GetShortName(c['name']),
         'methods' : methods,
-        'custom_methods' : custom_methods,
+        'custom_methods' : sorted(custom_methods, key = lambda x: x['short_name']),
     })
 
     if 'destructor' in c: