Go's sort package in TypeScript


Help us add more

Got a rainy Sunday afternoon and a taste for a porting puzzle?

We will then review it. If it's useful to the project and in line with our contributing guidelines your work will become part of Locutus and you'll be automatically credited in the authors section accordingly.

Upstream Surface Inventory 2/18 shipped • 4 next 11%

Namespace-level inventory for Go 1.23: what we already ship, what we may still want, and what we intentionally skip or keep.

sort package

Go 1.23 · Catalog source: live runtime snapshot golang:1.23:sort

33% shipped
2/6 shipped 4 next 12 explicit non-goals
Shipped (2)

Next

Index search helpers are useful plain-value targets.

  • Find

Search helpers have a clean plain-value contract.

  • Search
  • SearchFloat64s
  • SearchInts
Explicit non-goals (12)
  • Float64s Skip Most sort APIs depend on mutable slices or callback-driven ordering.
  • Float64sAreSorted Skip Most sort APIs depend on mutable slices or callback-driven ordering.
  • Ints Skip Most sort APIs depend on mutable slices or callback-driven ordering.
  • IntsAreSorted Skip Most sort APIs depend on mutable slices or callback-driven ordering.
  • IsSorted Skip Most sort APIs depend on mutable slices or callback-driven ordering.
  • Reverse Skip Most sort APIs depend on mutable slices or callback-driven ordering.
  • Slice Skip Most sort APIs depend on mutable slices or callback-driven ordering.
  • SliceIsSorted Skip Most sort APIs depend on mutable slices or callback-driven ordering.
  • SliceStable Skip Most sort APIs depend on mutable slices or callback-driven ordering.
  • Sort Skip Most sort APIs depend on mutable slices or callback-driven ordering.
  • Stable Skip Most sort APIs depend on mutable slices or callback-driven ordering.
  • Strings Skip Most sort APIs depend on mutable slices or callback-driven ordering.

« More Go functions