MCPcopy Create free account
hub / github.com/Lauriat/funct / sortBy_

Method sortBy_

funct/Array.py:683–690  ·  view source on GitHub ↗

Sorts this Array in place according to a function defining the sorting criteria.

(self, l, reverse=False)

Source from the content-addressed store, hash-verified

681 return Array(sorted(self, key=l, reverse=reverse))
682
683 def sortBy_(self, l, reverse=False):
684 """
685 Sorts this Array in place according to a function
686 defining the sorting criteria.
687 """
688 warn()
689 super().sort(key=l, reverse=reverse)
690 return self
691
692 def argsortBy(self, l, reverse=False):
693 """

Callers 1

testMethod · 0.80

Calls 1

sortMethod · 0.80

Tested by 1

testMethod · 0.64