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
|
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