From 9dd65a859ff3be130d5141fbdb997957b55617d3 Mon Sep 17 00:00:00 2001 From: Philipp Hofer Date: Thu, 4 Jun 2026 18:25:55 +0200 Subject: [PATCH] nicer sort @ boat reservation --- src/model/boat.rs | 4 ++-- templates/boatreservations.html.tera | 2 +- templates/includes/forms/log.html.tera | 14 ++++++++++++-- templates/includes/macros.html.tera | 4 ++-- 4 files changed, 17 insertions(+), 7 deletions(-) diff --git a/src/model/boat.rs b/src/model/boat.rs index df3e9fd..8f8ef75 100644 --- a/src/model/boat.rs +++ b/src/model/boat.rs @@ -261,8 +261,8 @@ WHERE b.external = false AND b.location_id = (SELECT id FROM location WHERE name = 'Linz') AND b.deleted = false -ORDER BY - b.name DESC; +ORDER BY + b.amount_seats ASC, b.name ASC; " ) .fetch_all(db) diff --git a/templates/boatreservations.html.tera b/templates/boatreservations.html.tera index ffd0b7d..289077d 100644 --- a/templates/boatreservations.html.tera +++ b/templates/boatreservations.html.tera @@ -19,7 +19,7 @@