Order guests consistently within the same group
All checks were successful
Run unit tests / unit_tests (pull_request) Successful in 5m34s
Build Nginx-based docker image / build-static-assets (pull_request) Successful in 1h19m42s

This commit is contained in:
Manuel Bustillo 2024-10-27 19:13:32 +01:00
parent 9dc6dd3983
commit 6219b74cb7

View File

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