Hi,
  This probably reveals my ignorance of Python! I am producing some reports 
and, of course need to sort the dataset first to suit my grouping of data eg:-

 def requery(self):
  # pass any selection criteria here
  self.DataSet = self.myBizobj.getDataSet()
  self.DataSet = self.DataSet.sort("AccountType")

I want to sort on 2 fields - Account Type and Date - I can't just concatenate 
the strings as they come from SQLite - I need to make the date field meaningful 
as a sort sequence. Only thought I had was to sort by date after it was 
converted to a yyyymmdd form, and then sort by AccountType as 2 steps - but it 
seems a complicated way to do things. An alternative was to concatenate 
AccountType with the reformatted date - but again - seems a long way around. 
Does anyone have better suggestions?
Thanks
Rodgy

--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/45a4a2bf82e04b668b8c76fab81f2...@roger

Reply via email to