[chronojump] Fixed bars order on Jump simple since recent commits
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed bars order on Jump simple since recent commits
- Date: Wed, 20 Apr 2022 08:28:53 +0000 (UTC)
commit d21f7d8f272f8b643ce479596b83fae922e947f9
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Apr 20 10:28:21 2022 +0200
Fixed bars order on Jump simple since recent commits
src/gui/usefulObjects.cs | 2 +-
src/sqlite/jump.cs | 6 ++++--
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/gui/usefulObjects.cs b/src/gui/usefulObjects.cs
index 46aa4b438..eba6eaed4 100644
--- a/src/gui/usefulObjects.cs
+++ b/src/gui/usefulObjects.cs
@@ -94,7 +94,7 @@ public class PrepareEventGraphJumpSimple
personIDTemp = -1;
jumpsAtSQL = SqliteJump.SelectJumps (sessionID, personIDTemp, type,
- Sqlite.Orders_by.ID_DESC, limit,
+ Sqlite.Orders_by.ID_ASC, limit,
allPersons, //show names on comments only if "all persons"
false); //! onlyBestInSession
diff --git a/src/sqlite/jump.cs b/src/sqlite/jump.cs
index 153523e56..3d09c2c22 100644
--- a/src/sqlite/jump.cs
+++ b/src/sqlite/jump.cs
@@ -128,7 +128,9 @@ class SqliteJump : Sqlite
filterTypeString = " AND jump.type == \"" + filterType + "\" ";
string orderByString = " ORDER BY upper(" + tp + ".name), jump.uniqueID ";
- if(order == Orders_by.ID_DESC)
+ if(order == Orders_by.ID_ASC)
+ orderByString = " ORDER BY jump.uniqueID ";
+ else if(order == Orders_by.ID_DESC)
orderByString = " ORDER BY jump.uniqueID DESC ";
string limitString = "";
@@ -240,7 +242,7 @@ class SqliteJump : Sqlite
if(sessionString != "" || personString != "" || jumpTypeString != "")
whereString = " WHERE ";
- string orderByString = " ORDER BY jump.uniqueID ";
+ string orderByString = " ORDER BY jump.uniqueID "; //ID_ASC
if(order == Orders_by.ID_DESC)
orderByString = " ORDER BY jump.uniqueID DESC ";
if(onlyBestInSession)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]