pub fn validate_sort_order(records: &[IndexRecord]) -> Result<()>Expand description
Validate that records are sorted ascending by (entry_key, discriminator)
with no duplicate pair (ahu-format-spec.md §2.4.1). Equal entry keys must
carry strictly ascending discriminators; a repeated pair is a
DuplicateEntryKey error, any descending order an IndexNotSorted error.