Sort all rowIDs gathered before storing them

This commit is contained in:
nagamocha3000 2021-01-19 02:00:50 +03:00
parent 9b23dcdd0a
commit d26c6b048e

View file

@ -3375,6 +3375,7 @@ func timeFragmentsRowIterator(fragments []*fragment, tx Tx, wrap bool, filters .
allRowIDs[i] = rowID
i++
}
sort.Slice(allRowIDs, func(i, j int) bool { return allRowIDs[i] < allRowIDs[j] })
it.rowIDToFragments = rowIDToFragments
it.allRowIDs = allRowIDs