   
   
   
+  clearSequenceOfTicketFor: ($el)->
+    id = $el.attr('data-ticket-id')
+    @setTicketSequence(id, null)
+  
+  setTicketSequence: (id, value)->
+    return console.log("id was undefined") unless id
+    ticket = @tickets.get(id)
+    return console.log("ticket #{id} was not found") unless ticket
+    ticket.set('sequence': value)
+  
+  
+  
   updateOrder: ->
     $tickets = $('#sequence2_sorted .sequence2-ticket')
     ids = _.map $tickets, (el)-> $(el).attr('data-ticket-id')
+    @setTicketSequence(ids[i], i + 1) for i in [0...ids.length]
     ids = "empty" if $tickets.length == 0
     url = window.location.pathname + '/ticket_order'
     $.put url, {order: ids}

            .find('.selected, .multiselectable-previous')
            .removeClass('selected multiselectable-previous')
        
        # unselect items in the opposite list
        click: (event, $e)->
          return unless $e.is('.sequence2-ticket')

      
      @delayedNotifier.trigger()
      @adjustVelocityIndicatorHeight()
  
  
  
  moveSelectionLeft: ->
    $ticket = $('#sequence2_sorted .sequence2-ticket.selected')
