diff --git a/src/main/java/de/jottyfan/timetrack/spring/done/impl/DoneGateway.java b/src/main/java/de/jottyfan/timetrack/spring/done/impl/DoneGateway.java index c4e7e8f..19ca296 100644 --- a/src/main/java/de/jottyfan/timetrack/spring/done/impl/DoneGateway.java +++ b/src/main/java/de/jottyfan/timetrack/spring/done/impl/DoneGateway.java @@ -75,7 +75,7 @@ public class DoneGateway { * @throws SQLException */ public List getAllProjects() throws DataAccessException, ClassNotFoundException, SQLException { - return getJooq().selectFrom(T_PROJECT).fetchInto(TProjectRecord.class); + return getJooq().selectFrom(T_PROJECT).orderBy(T_PROJECT.NAME).fetchInto(TProjectRecord.class); } /** @@ -88,7 +88,7 @@ public class DoneGateway { * @throws SQLException */ public List getAllModules() throws DataAccessException, ClassNotFoundException, SQLException { - return getJooq().selectFrom(T_MODULE).fetchInto(TModuleRecord.class); + return getJooq().selectFrom(T_MODULE).orderBy(T_MODULE.NAME).fetchInto(TModuleRecord.class); } /** @@ -101,7 +101,7 @@ public class DoneGateway { * @throws SQLException */ public List getAllJobs() throws DataAccessException, ClassNotFoundException, SQLException { - return getJooq().selectFrom(T_JOB).fetchInto(TJobRecord.class); + return getJooq().selectFrom(T_JOB).orderBy(T_JOB.NAME).fetchInto(TJobRecord.class); } /** @@ -114,7 +114,7 @@ public class DoneGateway { * @throws SQLException */ public List getAllBillings() throws DataAccessException, ClassNotFoundException, SQLException { - return getJooq().selectFrom(T_BILLING).fetchInto(TBillingRecord.class); + return getJooq().selectFrom(T_BILLING).orderBy(T_BILLING.NAME).fetchInto(TBillingRecord.class); } /**