add comment clarifying the cell ordering

This commit is contained in:
Joao Severo
2025-07-31 14:19:22 -03:00
committed by Jussi Saurio
parent 3adae17483
commit 71b09727d9

View File

@@ -6533,7 +6533,9 @@ fn defragment_page(page: &PageContent, usable_space: u16) {
if pc > last_offset {
// Enable a fast path preventing the sort operation
// for cells that are already in a sorted order
// for cells that are already in a sorted order, since
// cell grows from right to left we check if pc is
// greater than the last offset
is_physically_sorted = false;
}