diff --git a/src/main/java/de/jottyfan/camporganizer/module/common/IndexGateway.java b/src/main/java/de/jottyfan/camporganizer/module/common/IndexGateway.java index 635d422..39feb4d 100644 --- a/src/main/java/de/jottyfan/camporganizer/module/common/IndexGateway.java +++ b/src/main/java/de/jottyfan/camporganizer/module/common/IndexGateway.java @@ -4,6 +4,7 @@ import static de.jottyfan.camporganizer.db.jooq.Tables.T_PERSON; import static de.jottyfan.camporganizer.db.jooq.Tables.T_PROFILE; import static de.jottyfan.camporganizer.db.jooq.Tables.V_CAMP; +import java.time.LocalDateTime; import java.util.ArrayList; import java.util.List; import java.util.stream.Stream; @@ -14,6 +15,7 @@ import org.jooq.Condition; import org.jooq.DSLContext; import org.jooq.Record; import org.jooq.SelectConditionStep; +import org.jooq.SelectSeekStep1; import org.jooq.UpdateConditionStep; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; @@ -37,7 +39,7 @@ public class IndexGateway { private DSLContext jooq; public Stream getAllCamps(Condition condition) { - SelectConditionStep sql = jooq.selectFrom(V_CAMP).where(condition); + SelectSeekStep1 sql = jooq.selectFrom(V_CAMP).where(condition).orderBy(V_CAMP.ARRIVE); LOGGER.debug(sql.toString()); return sql.fetchStream(); } diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index fa2c081..278fcd8 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -47,7 +47,7 @@
Preis
-
+
Ferien