diff options
Diffstat (limited to 'WebKitTools/Scripts/create-html-entity-table')
-rwxr-xr-x | WebKitTools/Scripts/create-html-entity-table | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WebKitTools/Scripts/create-html-entity-table b/WebKitTools/Scripts/create-html-entity-table index 46c8c52..c408207 100755 --- a/WebKitTools/Scripts/create-html-entity-table +++ b/WebKitTools/Scripts/create-html-entity-table @@ -73,7 +73,7 @@ html_entity_names_file = open(input_path) entries = simplejson.load(html_entity_names_file) html_entity_names_file.close() -entries = sorted(entries, key=lambda entry: entry['entity']) +entries.sort(lambda a, b: cmp(a['entity'], b['entity'])) entity_count = len(entries) output_file = open(output_path, "w") |