mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 18:47:46 +00:00
Remove sorting key
This commit is contained in:
parent
4f5173b633
commit
e9298c5faf
1 changed files with 4 additions and 7 deletions
|
|
@ -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]:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue