From 01dac5c37a8290b2f626175b910285390e2fe3a2 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 24 Nov 2023 13:04:02 -0500 Subject: ensure speed ties are broken by completion order --- app/views/wittle/puzzles/show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views') 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 @@ #by-time %h2 Fastest Solves %table - - @puzzle.scores.where("seconds_taken IS NOT NULL").order(seconds_taken: :asc).limit(100).each_with_index do |score, i| + - @puzzle.scores.where("seconds_taken IS NOT NULL").order(seconds_taken: :asc, created_at: :asc).limit(100).each_with_index do |score, i| %tr %td #{(i + 1)}. %td= score.name -- cgit 1.4.1