poniedziałek, 24 października 2011

more lines == more profit

  def _SortItemizedDataListById_(self, a, b):
    if a.Transaction_Number < b.Transaction_Number:
      return -1
    
    return int(a.Transaction_Number > b.Transaction_Number)


Isn't easyer to fo it using cmp build-in function??