[quadrapassel] Sort scores from highest to lowest
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [quadrapassel] Sort scores from highest to lowest
- Date: Thu, 7 Nov 2013 18:36:17 +0000 (UTC)
commit 4f57139eaddbaa6416578e8bb6064442b715e8dd
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Thu Nov 7 12:35:33 2013 -0600
Sort scores from highest to lowest
Currently scores are sorted from lowest to highest
src/quadrapassel.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/quadrapassel.vala b/src/quadrapassel.vala
index 52313f2..7605a1d 100644
--- a/src/quadrapassel.vala
+++ b/src/quadrapassel.vala
@@ -889,7 +889,7 @@ public class ScoreDialog : Gtk.Dialog
private static int compare_entries (HistoryEntry a, HistoryEntry b)
{
if (a.score != b.score)
- return a.score - b.score;
+ return b.score - a.score;
return a.date.compare (b.date);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]