Order guests consistently within the same group
This commit is contained in:
parent
9dc6dd3983
commit
6219b74cb7
@ -7,7 +7,7 @@ class GuestsController < ApplicationController
|
||||
def index
|
||||
@guests = Guest.all
|
||||
.joins(:group)
|
||||
.order('groups.name' => :asc)
|
||||
.order('groups.name' => :asc, first_name: :asc, last_name: :asc)
|
||||
|
||||
render jsonapi: @guests
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user