diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-11-24 13:04:02 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-11-24 13:04:02 -0500 |
commit | 01dac5c37a8290b2f626175b910285390e2fe3a2 (patch) | |
tree | 6d63476970dc98d30445a0c08c7d3be61445c4bd /app/views | |
parent | b21f37b598bdf2bb901423f11b7708d81f99966b (diff) | |
download | wittle-01dac5c37a8290b2f626175b910285390e2fe3a2.tar.gz wittle-01dac5c37a8290b2f626175b910285390e2fe3a2.tar.bz2 wittle-01dac5c37a8290b2f626175b910285390e2fe3a2.zip |
ensure speed ties are broken by completion order
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/wittle/puzzles/show.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/wittle/puzzles/show.html.haml b/app/views/wittle/puzzles/show.html.haml index 6825f22..47db8f2 100644 --- a/app/views/wittle/puzzles/show.html.haml +++ b/app/views/wittle/puzzles/show.html.haml | |||
@@ -25,7 +25,7 @@ | |||
25 | #by-time | 25 | #by-time |
26 | %h2 Fastest Solves | 26 | %h2 Fastest Solves |
27 | %table | 27 | %table |
28 | - @puzzle.scores.where("seconds_taken IS NOT NULL").order(seconds_taken: :asc).limit(100).each_with_index do |score, i| | 28 | - @puzzle.scores.where("seconds_taken IS NOT NULL").order(seconds_taken: :asc, created_at: :asc).limit(100).each_with_index do |score, i| |
29 | %tr | 29 | %tr |
30 | %td #{(i + 1)}. | 30 | %td #{(i + 1)}. |
31 | %td= score.name | 31 | %td= score.name |