diff --git a/apps/dnet-orgs-database-application/src/main/java/eu/dnetlib/organizations/utils/DatabaseUtils.java b/apps/dnet-orgs-database-application/src/main/java/eu/dnetlib/organizations/utils/DatabaseUtils.java index c6b89581..65771b50 100644 --- a/apps/dnet-orgs-database-application/src/main/java/eu/dnetlib/organizations/utils/DatabaseUtils.java +++ b/apps/dnet-orgs-database-application/src/main/java/eu/dnetlib/organizations/utils/DatabaseUtils.java @@ -200,14 +200,14 @@ public class DatabaseUtils { @Cacheable("vocs") public List listValuesOfVocabularyTable(final VocabularyTable table) { - final String sql = "select val as value, name as name from " + table; + final String sql = "select val as value, name as name from " + table + " order by name"; return jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(VocabularyTerm.class)); } @Cacheable("countries_for_user") public List listCountriesForUser(final String name) { final String sql = - "select uc.country as value, c.name as name from user_countries uc left outer join countries c on (c.val = uc.country) where uc.email = ?"; + "select uc.country as value, c.name as name from user_countries uc left outer join countries c on (c.val = uc.country) where uc.email = ? order by c.name"; return jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(VocabularyTerm.class), name); } diff --git a/apps/dnet-orgs-database-application/src/main/resources/static/resources/html/parts/resolve_conflicts.modal.html b/apps/dnet-orgs-database-application/src/main/resources/static/resources/html/parts/resolve_conflicts.modal.html index d66c80cb..8a3a2ac1 100644 --- a/apps/dnet-orgs-database-application/src/main/resources/static/resources/html/parts/resolve_conflicts.modal.html +++ b/apps/dnet-orgs-database-application/src/main/resources/static/resources/html/parts/resolve_conflicts.modal.html @@ -38,7 +38,7 @@