sort pacs and users

This commit is contained in:
Peter Hormanns 2021-08-13 19:18:17 +02:00
parent f44fe4a00f
commit 885ece0522

View File

@ -143,7 +143,7 @@ public class JsonPillarServlet extends HttpServlet {
writer.println(" }"); writer.println(" }");
} }
writer.println(" ]"); writer.println(" ]");
final Query domsQuery = em.createQuery("SELECT d FROM Domains d WHERE d.user.pac.hive.name = :hive"); final Query domsQuery = em.createQuery("SELECT d FROM Domains d WHERE d.user.pac.hive.name = :hive ORDER BY d.name");
domsQuery.setParameter("hive", hiveName); domsQuery.setParameter("hive", hiveName);
final List<?> domsResult = domsQuery.getResultList(); final List<?> domsResult = domsQuery.getResultList();
writer.println(" , \"doms\": ["); writer.println(" , \"doms\": [");