Ensure consistent sorting of promise groups.