sort entries, but maintain indexes, because we're setting entries with slugs as keys