Array sorting algorithms implemented in Go