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

Method _sort

markdown/util.py:405–413  ·  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

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