From 1d43dd706894d8eab7e0464c54f88b7ae814f684 Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Mon, 22 Feb 2010 10:32:54 +0000 Subject: Correct order of resumable entries in Activity palette #1734 Match the order in the activity palette in the Home View with the order of the entries in the Journal --- diff --git a/src/jarabe/desktop/favoritesview.py b/src/jarabe/desktop/favoritesview.py index aefae5f..9f3c37b 100644 --- a/src/jarabe/desktop/favoritesview.py +++ b/src/jarabe/desktop/favoritesview.py @@ -387,8 +387,9 @@ class ActivityIcon(CanvasIcon): break def _get_last_activity_async(self, bundle_id, properties): - query = {'activity': bundle_id} - datastore.find(query, sorting='-mtime', limit=self._MAX_RESUME_ENTRIES, + query = {'activity': bundle_id} + datastore.find(query, sorting=['+timestamp'], + limit=self._MAX_RESUME_ENTRIES, properties=properties, reply_handler=self.__get_last_activity_reply_handler_cb, error_handler=self.__get_last_activity_error_handler_cb) -- cgit v0.9.1