MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / _sort

Method _sort

markdown/util.py:402–410  ·  view source on GitHub ↗

Sort the registry by priority from highest to lowest. This method is called internally and should never be explicitly called.

(self)

Source from the content-addressed store, hash-verified

400 raise
401
402 def _sort(self) -> None:
403 """
404 Sort the registry by priority from highest to lowest.
405
406 This method is called internally and should never be explicitly called.
407 """
408 if not self._is_sorted:
409 self._priority.sort(key=lambda item: item.priority, reverse=True)
410 self._is_sorted = True

Callers 3

__iter__Method · 0.95
__getitem__Method · 0.95
get_index_for_nameMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected