fixing error on sort for ticket_types.name