View Single Post
Old 02-09-2016, 08:56 AM   #15
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,556
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by theducks View Post
But I would do a double level, because you may have more than 1 entry per date. Date descending order with those sorted by Title
Code:
 [('title',0),('date',1)]
That will sort by date within title, won't it? If you want to sort by title within date, shouldn't it be the other way around?

Code:
 [('date',1), ('title',0),]
I guess it depends whether the "date" column just stores the date, or a full timestamp. If it's the latter, you'll never have two items with the same timestamp, so there can't sensibly be a secondary sort column.
HarryT is offline   Reply With Quote