Merge pull request 'Order guests consistently within the same group' (#72) from consistent-guest-order into main
Some checks failed
Run unit tests / unit_tests (push) Successful in 4m10s
Build Nginx-based docker image / build-static-assets (push) Has been cancelled

Reviewed-on: #72
This commit is contained in:
bustikiller 2024-10-27 19:36:21 +00:00
commit 5ddcd780f0

View File

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