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
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user