Skip to content
Snippets Groups Projects
Commit 8e8e27ab authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Alphabetic sorting of users

parent 5b25d96c
No related branches found
No related tags found
2 merge requests!17Develop,!9Update with develop before real branch work starts
This commit is part of merge request !9. Comments created here will be created in the context of that merge request.
...@@ -201,7 +201,9 @@ public class PointOfInterestController extends HttpServlet { ...@@ -201,7 +201,9 @@ public class PointOfInterestController extends HttpServlet {
if(user.isSuperUser()) if(user.isSuperUser())
{ {
request.getSession().setAttribute("users", em.createNamedQuery("VipsLogicUser.findAll", VipsLogicUser.class).getResultList()); List<VipsLogicUser> users = em.createNamedQuery("VipsLogicUser.findAll", VipsLogicUser.class).getResultList();
Collections.sort(users);
request.getSession().setAttribute("users", users);
} }
Integer organizationId = Integer.valueOf(request.getParameter("organizationId")); Integer organizationId = Integer.valueOf(request.getParameter("organizationId"));
request.setAttribute("returnURL","weatherStation?organizationId=" + organizationId); request.setAttribute("returnURL","weatherStation?organizationId=" + organizationId);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment