Fix ordering for format_ticket