Sort a list to ensure consistent ordering.
(lst)
| 615 | |
| 616 | |
| 617 | def normalize_list(lst): |
| 618 | """Sort a list to ensure consistent ordering.""" |
| 619 | lst = [x for x in lst if x] |
| 620 | return sorted(lst) if lst else [] |
| 621 | |
| 622 | |
| 623 | def canonical_value(value): |
no outgoing calls