/timsort

Timesort algorighm in go

Primary LanguageGoMIT LicenseMIT

Go Report Card Build Status codecov

Timsort

Timsort is a hybrid stable sorting algorithm, derived from merge sort and insertion sort, designed to perform well on many kinds of real-world data. Details

Usuage

import "github.com/mimol91/timsort"

elementsToSort := int[]{1,6,2}
sorted := Timsort.Sort[int](elementsToSort)