Oleg Broytmann wrote: > On Wed, Apr 04, 2007 at 04:50:31PM -0700, MichaelG wrote: >> SELECT Year, Artist, TrackName FROM Music ORDER BY Year, Artist, Track >> >> What if any is the equivalent syntax in SQLObject for this kind of >> multi-key sort? All I can find is the single column syntax for orderBy, >> but I am not sure how to render this as a 2 or more key argument. > > Use a list: > > Music.select(orderBy=[Music.q.year, Music.q.artist, Music.q.track]) > > Oleg. ----
Works like a charm, thanks, Oleg. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss