Mojo module
sort
Implements the built-in sort function.
These are Mojo built-ins, so you don't need to import them.
Aliases
insertion_sort_threshold
alias insertion_sort_threshold = 32
Functions
- partition: Partition the input buffer inplace such that first k elements are the largest (or smallest if cmp_fn is < operator) elements. The ordering of the first k elements is undefined.
- sort: Sort a span in-place. The function doesn't return anything, the span is updated in-place.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
