lib/logstorage/pipe_sort.go: wip

This commit is contained in:
Aliaksandr Valialkin 2024-05-14 02:03:59 +02:00
parent 5c4679ba01
commit 1834c68250
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB

View file

@ -583,7 +583,10 @@ func sortBlockLess(shardA *pipeSortProcessorShard, rowIdxA int, shardB *pipeSort
if ccA == ccB {
continue
}
return cA.c.encodedValues[0] < cB.c.encodedValues[0]
if isDesc {
return ccB < ccA
}
return ccA < ccB
}
if cA.c.isTime && cB.c.isTime {