From d63976f809f4fdaeeaddde88f70f188e77d9a680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reynir=20Bj=C3=B6rnsson?= Date: Fri, 22 Jan 2021 13:15:50 +0100 Subject: [PATCH] Sort builds latest first Fixes #17 --- db/builder_db.ml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/builder_db.ml b/db/builder_db.ml index 9dbf6a7..47ce051 100644 --- a/db/builder_db.ml +++ b/db/builder_db.ml @@ -286,7 +286,7 @@ module Build = struct script, job FROM build WHERE job = ? - ORDER BY start_d ASC, start_ps ASC + ORDER BY start_d DESC, start_ps DESC |} let get_all_meta = @@ -298,7 +298,7 @@ module Build = struct result_kind, result_code, result_msg, job FROM build WHERE job = ? - ORDER BY start_d ASC, start_ps ASC + ORDER BY start_d DESC, start_ps DESC |} let get_all_meta_by_name = @@ -311,7 +311,7 @@ module Build = struct build.result_kind, build.result_code, build.result_msg, build.job FROM build, job WHERE job.name = ? AND build.job = job.id - ORDER BY start_d ASC, start_ps ASC + ORDER BY start_d DESC, start_ps DESC |}