<分区>
我正在尝试对 slice 内的 int slice 进行排序,例如:
slices := make([][]int32, 0)
slices = append(slices, []int32{10,22})
slices = append(slices, []int32{13,22})
slices = append(slices, []int32{12,22})
// [[10 22] [13 22] [12 22]]
// to become
// [[10 22] [12 22] [13 22]] (ascending)
// *by the first element in slice
我对此一无所知,但我正在考虑在检查后追加和前置