         tickets.push ticket
         if ticket.show is SHOW.NOT then return
         selectableTickets.push ticket
+        selectableTickets.sortById()
         if selectedTickets.length is 0
           selectedTickets.push ticket
 

        for k, v of param then t[k] = v
        if t.show isnt SHOW.NOT
          selectableTickets.push t
        break
      for t, i in selectableTickets when equals(t, {url: url, id: id})
        for k, v of param then t[k] = v

    return x.url is y.url and x.id is y.id


  ###
   sort ticket by id
  ###
  selectableTickets.sortById = () ->
    this.sort (x, y) ->
      return x.id - y.id


  return {


