lib/trello_helper.rb
# Return true if the SortableCard objects card1 and card2 are in
# order
Return true if the SortableCard objects card1 and card2 are in
order
Return true if the SortableCard objects card1 and card2 are in order
def cards_in_order(card1, card2)
    if card1.release < card2.release
      return true
    elsif card1.release == card2.release
      if RELEASE_STATE_ORDER[card1.state] < RELEASE_STATE_ORDER[card2.state]
        return true
      end
    end
    if card1.product != card2.product
      return true
    end
    false
  end
def cards_in_order ( card1 , card2 ) if card1 . release < card2 . release return true elsif card1 . release == card2 . release if RELEASE_STATE_ORDER [ card1 . state ] < RELEASE_STATE_ORDER [ card2 . state ] return true end end if card1 . product != card2 . product return true end false end
Return true if the SortableCard objects card1 and card2 are in
order
Return true if the SortableCard objects card1 and card2 are in order
card1
card2