order tickets by validness; detail view shows top ticket