tweak election order

This commit is contained in:
Kiara Grouwstra 2023-02-19 07:10:49 +01:00
parent 0da92c53b3
commit ccebf5edb9
Signed by: kiara
GPG Key ID: 47D3B7604FFCA83A
1 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,8 @@ class MainController < ApplicationController
end
def stemmen
@votes = Vote.where(room_id: @room.id, user_id: @user.id).order(created_at: :desc)
@votes = Vote.where(room_id: @room.id, user_id: @user.id)
.order(id: :desc) # created_at ends up identical if loaded in one query
render :votes
end