Ad ledger-mode flags to limit sort region for sort buffer