Go Package sort

From NovaOrdis Knowledge Base
Revision as of 03:09, 13 June 2024 by Ovidiu (talk | contribs) (→‎Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

External

Internal

Overview

The package provides primitives for sorting slices of ints and floats and user-defined collections. The sort package.

sort.Ints(slice)
sort.Float64s(slice)
sort.Strings(slice)


To sort slices, slices.Sort* is preferred.

Slice Sorting

Slice Sorting