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
Branches
Tags
2 merge requests!17Develop,!9Update with develop before real branch work starts
......@@ -201,7 +201,9 @@ public class PointOfInterestController extends HttpServlet {
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"));
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