# HG changeset patch # User neko259 # Date 2017-12-17 20:50:24 # Node ID 218dce3dcf72fd549432139814398a229dda7801 # Parent f0ac3d5063557f143548364ed4b8df68bc787b12 Order fav threads in list diff --git a/boards/abstracts/settingsmanager.py b/boards/abstracts/settingsmanager.py --- a/boards/abstracts/settingsmanager.py +++ b/boards/abstracts/settingsmanager.py @@ -180,7 +180,7 @@ class SettingsManager: def get_last_posts(self): post_ids = self.get_setting(SETTING_LAST_POSTS) or [] - return list(boards.models.Post.objects.filter(id__in=post_ids)) + return list(boards.models.Post.objects.filter(id__in=post_ids).order_by('thread__id')) class SessionSettingsManager(SettingsManager):