Skip to content

Releases: linjing-lab/sorting-algorithms

sortingx-1.1.0

31 Oct 05:37
Compare
Choose a tag to compare

download:

!pip install sortingx==1.1.0 # in jupyter
pip install sortingx==1.1.0 # in cmd

example:

import sortingx as six
data = [('Alex', 100, 90, 98, 95), ('Jack', 97, 88, 98, 92), ('Peter', 92, 95, 92, 96), ('Li', 97, 89, 98, 92)]
six.bubble(data, key=lambda x: (x[0], x[1]), reverse=True) # v1.1.0 only allows `list` data with in-place sorting.
print(data)

time comparison by v1.1.0:columns=1000, rows=10000

test on Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz