Skip to content

Commit

Permalink
Merge pull request #8 from tupton/better-sorting
Browse files Browse the repository at this point in the history
Order by visit_count, typed_count, last_visit_time
  • Loading branch information
tupton committed Dec 5, 2015
2 parents 1e902e4 + 08debcf commit cc544f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chrome.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
HISTORY_DB = 'History'
HISTORY_CACHE = os.path.join(alfred.work(True), HISTORY_DB)
HISTORY_QUERY = u"""
SELECT id,title,url FROM urls WHERE (title LIKE ? OR url LIKE ?) ORDER BY last_visit_time DESC
SELECT id,title,url FROM urls WHERE (title LIKE ? OR url LIKE ?) ORDER BY visit_count DESC, typed_count DESC, last_visit_time DESC
"""

class ErrorItem(alfred.Item):
Expand Down

0 comments on commit cc544f7

Please sign in to comment.