Accept comma-separated list of sort criteria

This commit is contained in:
Junegunn Choi committed 2016-01-13 21:27:43 +09:00
1 parent d635b3fd3c
commit 1d2d32c847
12 files changed
+298 -120

No files matched your search

+1 -1
View File
@@ -88,7 +88,7 @@ func (mg *Merger) cacheable() bool {
func (mg *Merger) mergedGet(idx int) *Item {
for i := len(mg.merged); i <= idx; i++ {
minRank := Rank{0, 0, 0}
minRank := buildEmptyRank(0)
minIdx := -1
for listIdx, list := range mg.lists {
cursor := mg.cursors[listIdx]