diff --git a/app/controllers/guests_controller.rb b/app/controllers/guests_controller.rb index 925770f..aa23e4b 100644 --- a/app/controllers/guests_controller.rb +++ b/app/controllers/guests_controller.rb @@ -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