This code keeps them in the same order as the `userIds` list. `_.values(userProfiles);` wouldn't guarantee that.