Re: Specify the sorting direction for the various columns/

2009-06-14 Thread Oni
Thanks for the answers. My goal was to try to avoid hard coding and add a little shine to the code I have inherited. But its too far gone already and time is short. So have used Mike's answer. Mike answer with minor changes: import datetime import pprint import operator import time entries = [{

Specify the sorting direction for the various columns/

2009-06-11 Thread Oni
Managed to get a dictionary to sort on multiple columns using a tuple to set the sort order (see below). However how can I control that column "date" orders descending and the column "name" orders ascending. Thanks import datetime import pprint import operator faUserFormInput = {'DDPageSortOrder