goodmami / penman

PENMAN notation (e.g. AMR) in Python
https://penman.readthedocs.io/
MIT License
141 stars 26 forks source link

Reintroduce alphanumeric sorting function #72

Closed goodmami closed 4 years ago

goodmami commented 4 years ago

With the ability to specify multiple sorting keys (#70), it makes more sense to add alphanumeric sorting as its own function. The canonical_order() method could then be defined as just a tuple of is_role_inverted() and alphanumeric_order().