Order guests consistently within the same group #72

Merged
bustikiller merged 1 commits from consistent-guest-order into main 2024-10-27 19:36:21 +00:00
Showing only changes of commit 6219b74cb7 - Show all commits

View File

@ -7,7 +7,7 @@ class GuestsController < ApplicationController
def index def index
@guests = Guest.all @guests = Guest.all
.joins(:group) .joins(:group)
.order('groups.name' => :asc) .order('groups.name' => :asc, first_name: :asc, last_name: :asc)
render jsonapi: @guests render jsonapi: @guests
end end