I can't seem to get this nailed down and I thought I'd toss it out \nthere as, by gosh, its got to be something simple I'm missing.\n\nI have two different database tables of events that use different \nschemas. I am using python to collate these records for display. I do \nthis by creating a list of lists that look roughly like this:\n\nevents = [['Event URL as String', 'Event Title as String ', Event Date \nas Datetime], ...]\n\nI then thought I'd just go events.sort(lambda x,y: x<y) and call \nit a day. That didn't work. But then lamda functions like to be very \nsimple, maybe object subscripts aren't allowed (even though I didn't \nget an error). So I wrote a comparison function that looks much as you \nwould expect:\n\ndef date_compare(list1, \nlist2):\n x = list1\n y = list2\n if \nx>y:\n return \n1\n elif \nx==y:\n return \n0\n else: # \nx<y\n return -1\n\nBut as before sorting with this function returns None.\n\nWhat have I overlooked?