Remove sorting key

This commit is contained in:
YishiMichael 2022-04-16 16:31:55 +08:00
parent 4f5173b633
commit e9298c5faf
No known key found for this signature in database
GPG key ID: EC615C0C5A86BC80

View file

@ -188,13 +188,10 @@ class LabelledString(SVGMobject, ABC):
])
spans = [span]
result.extend(spans)
return sorted(
filter(
lambda span: span[0] < span[1],
remove_list_redundancies(result)
),
key=lambda span: (span[0], -span[1])
)
return sorted(filter(
lambda span: span[0] < span[1],
remove_list_redundancies(result)
))
@staticmethod
def get_neighbouring_pairs(iterable: list) -> list[tuple]: