Skip to content

Commit 6bcc426

Browse files
committed
Sort possible_lengths when generating union
1 parent 97cc376 commit 6bcc426

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/python/buildmetadatafromxml.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,8 @@ def __init__(self, xterritory, short_data):
484484
possible_lengths.update(desc.o.possible_length)
485485
if desc.o.possible_length_local_only is not None:
486486
local_lengths.update(desc.o.possible_length_local_only)
487-
self.o.general_desc.o.possible_length = list(possible_lengths)
488-
self.o.general_desc.o.possible_length_local_only = list(local_lengths)
487+
self.o.general_desc.o.possible_length = sorted(list(possible_lengths))
488+
self.o.general_desc.o.possible_length_local_only = sorted(list(local_lengths))
489489

490490
# Now that the union of length information is available, trickle it back down to those types
491491
# of number that didn't specify any length information (indicated by having those fields set

0 commit comments

Comments
 (0)