Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Sorting Algorithms in Rust
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
- slice::sort
- slice::sort_by
- slice::sort_by_key
- slice::sort_unstable
- slice::sort_unstable_by
- slice::sort_unstable_by_key
GlideSort
GlideSort is a novel stable sorting algorithm that combines the best-case behavior of Timsort-style merge sorts for pre-sorted …
Sorting At Compile Time in Rust
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
References
Sort DataFrame in Spark
Comments¶
- After sorting, rows in a DataFrame are sorted according to partition ID. And within each partition, rows are sorted. This property can be leverated to implement global ranking of rows. For more details, please refer to Computing global rank of a row in a DataFrame with Spark SQL. However, notice that multi-layer ranking is often more efficiency than a global ranking in big data applications.
Sort Collections in Python
Tips¶
- You can use the built-in function
sorted
to sort any iterable collection. It always a (new) list containing sorted data. Some mutable collections (e.g., list) have thee methodsort
to sort elements in-place. Bothsorted
andCollection.sort
accept an argumentkey
for specifying customized sorting criteria.