# HG changeset patch # User neko259 # Date 2013-11-17 11:21:42 # Node ID 6a06fe27f888841ade9c5c38dd88a5917e5da791 # Parent 57d21b813c6ccb8b1713809d93e5dd98b5b70559 Added order statement to getting added posts diff --git a/boards/views.py b/boards/views.py --- a/boards/views.py +++ b/boards/views.py @@ -429,7 +429,9 @@ def api_get_threaddiff(request, thread_i 'updated': [], 'last_update': None, } - added_posts = Post.objects.filter(thread=thread, pub_time__gt=filter_time) + added_posts = Post.objects.filter(thread=thread, + pub_time__gt=filter_time)\ + .order_by('pub_time') updated_posts = Post.objects.filter(thread=thread, pub_time__lt=filter_time, last_edit_time__gt=filter_time)