diff --git a/tsdb/block.go b/tsdb/block.go index 8dbeff16e..b06f0940a 100644 --- a/tsdb/block.go +++ b/tsdb/block.go @@ -198,7 +198,7 @@ func (bm *BlockMetaCompaction) SetOutOfOrder() { return } bm.Hints = append(bm.Hints, CompactionHintFromOutOfOrder) - sort.Strings(bm.Hints) + slices.Sort(bm.Hints) } func (bm *BlockMetaCompaction) FromOutOfOrder() bool {