Goで安定ソート
#sort
Go
で
安定ソート
を使いたければ
Sort.SliceStable
を使えばok
c.f.
GoのSliceをSortする(sort.Sliceとsort.SliceStable) - Qiita