Return guests ordered by invitation within same group #282
| @ -12,7 +12,7 @@ class GuestsController < ApplicationController | |||||||
|   def index |   def index | ||||||
|     render json: Guest.includes(:group) |     render json: Guest.includes(:group) | ||||||
|                       .left_joins(:group) |                       .left_joins(:group) | ||||||
|                       .order('groups.name' => :asc, name: :asc) |                       .order('groups.name' => :asc, invitation_id: :asc, name: :asc) | ||||||
|                       .as_json(GUEST_PARAMS) |                       .as_json(GUEST_PARAMS) | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user