Merge pull request 'Order guests consistently within the same group' (#72) from consistent-guest-order into main
Reviewed-on: #72
This commit is contained in:
commit
5ddcd780f0
@ -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