Support @reverse in compaction