MCPcopy Index your code
hub / github.com/Python-Markdown/markdown / _sort

Method _sort

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

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