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

Method sort

funct/Array.py:699–705  ·  view source on GitHub ↗

Sorts this Array.

(self, inplace=False, **kwargs)

Source from the content-addressed store, hash-verified

697 return self.enumerate.sortBy(lambda e: l(e[1]), reverse=reverse)[:, 0]
698
699 def sort(self, inplace=False, **kwargs):
700 """ Sorts this Array. """
701 if inplace:
702 self.__validate_bool_arg(inplace, "inplace")
703 super().sort(**kwargs)
704 return self
705 return Array(sorted(self, **kwargs))
706
707 def sort_(self, **kwargs):
708 """ Sorts this Array in place. """

Callers 4

testMethod · 0.95
sortByMethod · 0.80
sortBy_Method · 0.80
sort_Method · 0.80

Calls 2

__validate_bool_argMethod · 0.95
ArrayClass · 0.85

Tested by 1

testMethod · 0.76