Commit 7f763eec authored by michael.simon's avatar michael.simon
Browse files

Sort by groupNames to get consistent ordering

parent 682bbf71
......@@ -160,7 +160,7 @@ public class JpaGroupDao extends JpaBaseDao<GroupEntity, Long> implements GroupD
@SuppressWarnings("unchecked")
@Override
public List<GroupEntity> findByUser(UserEntity user) {
return em.createQuery("select r.group from UserGroupEntity r where r.user = :user")
return em.createQuery("select r.group from UserGroupEntity r where r.user = :user order by r.group.name")
.setParameter("user", user).getResultList();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment