diff --git a/app/controllers/tables_arrangements_controller.rb b/app/controllers/tables_arrangements_controller.rb index ba2eea3..689949c 100644 --- a/app/controllers/tables_arrangements_controller.rb +++ b/app/controllers/tables_arrangements_controller.rb @@ -8,6 +8,7 @@ class TablesArrangementsController < ApplicationController def show Seat.joins(guest: :group) .where(tables_arrangement_id: params[:id]) + .order('guests.group_id') .pluck( :table_number, Arel.sql("guests.first_name || ' ' || guests.last_name "), 'guests.id',