Add comparison func for tickets, fix ticket struct