Implement sorting for active/inactive tickets.