Make sure we sort sub-index output