diff --git a/internal/querynodev2/delegator/delegator_data.go b/internal/querynodev2/delegator/delegator_data.go index 4fd2bc1c39d0d..c50620fc163ef 100644 --- a/internal/querynodev2/delegator/delegator_data.go +++ b/internal/querynodev2/delegator/delegator_data.go @@ -21,7 +21,6 @@ import ( "fmt" "math/rand" "runtime" - "sort" "time" "github.com/cockroachdb/errors" @@ -593,10 +592,6 @@ func (sd *shardDelegator) GetLevel0Deletions(partitionID int64, candidate pkorac } } - sort.Slice(pks, func(i, j int) bool { - return tss[i] < tss[j] - }) - return pks, tss }