It might be useful if query.getResultList() returns list of User objects, whose id field is ordered in the same order that userIds parameter list.
It makes sense on primary key or unique field.
This behavior might be turned on/off by some configuration parameter.