GNOME Bugzilla – Bug 789399
Reverse score ordering
Last modified: 2018-02-18 02:15:57 UTC
Created attachment 362174 [details] Gnome mines screenshot illustrating reverse score order. Top scores display in a reversed manner. Also beating the score when score table is full doesn't alter the score table. See screenshot. Notice score ordering and 2:44 is the last time which should get a place in the score table. gnome-mines 3.24.0 gnome-mines-3.24.0-1.fc26 Fedora release 26 (Twenty Six)
Weird, I tested just now and it's working fine for me. I can't even begin to guess what's causing this.
Just noticed that 16x16 has no ordering and 8x8 looks good. Attaching score files.
Created attachment 362229 [details] scores 8-8-10
Created attachment 362230 [details] scores 16-16-40
Created attachment 362231 [details] scores 30-16-99
Wow, I can reproduce now. But my results are different than yours. For 8x8 I'm seeing the scores in exactly the same order they are in the file (unsorted). 16x16 is also sorted in the same order the scores appear in the file (sorted in reverse order) for me. I see 30x16 sorted properly, lowest time to highest time, even though the file is unsorted. This is not likely to be a Mines bug, we need to debug libgnome-games-support.
*** Bug 793262 has been marked as a duplicate of this bug. ***
Mines 3.26.0 - Ubuntu 17.10 In my case the scores in (8x8) and (16x16) look unsorted. Everything fine in (30x16).
*** Bug 793387 has been marked as a duplicate of this bug. ***
The following fix has been pushed: 2869410 scores: Use List instead of PriorityQueue to store scores
Created attachment 368509 [details] [review] scores: Use List instead of PriorityQueue to store scores Instead, sort the scores right before they're needed. This should be less efficient in theory, but our use of PriorityQueue is not working properly and it's not clear why. Sorting on demand simplifies several functions, and should be just fine. This fixes scores appearing out of order on the scores dialog.
Sorry about this issue. I'm going to be overly-cautious and not backport this to 1.2, so it will be fixed only in libgnome-games-support 1.4. Will do a preview release for that soon.