# date2 = TamilDate(-1, 6, -1, 24, 2) # date3 = TamilDate(-1, 4, -1, 1, 2) # customerEntry1 = CustomerEntry( "test1", "occassion1", date1 ) # print customerEntry1, "\n" # customerEntry2 = CustomerEntry( "test2", "occassion2", date2 ) # print customerEntry2, "\n" # customerEntry3 = CustomerEntry( "test3", "occassion3", date3 ) # print customerEntry3, "\n" # list = [ ] # list.append(customerEntry1); # list.append(customerEntry2); # list.append(customerEntry3); # sorted_list = sorted(list, key=lambda CustomerEntry: CustomerEntry.julianDate) # for i in sorted_list: # print i customerEntries = readCustomerData('tithi_data.xls') sortedList = sorted(customerEntries, key=lambda CustomerEntry: CustomerEntry.julianDate) for s in sortedList: print s # hello = HelloWorld() # hello.main()