Make pak sort order deterministic