From b2e5b654aa7b3a82f21f1c164fef51fbb1d45354 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Feb 20 2015 12:26:07 +0000 Subject: Try ordering the comments in a ticket by their creation dates --- diff --git a/progit/model.py b/progit/model.py index 6d801f9..be93185 100644 --- a/progit/model.py +++ b/progit/model.py @@ -378,7 +378,7 @@ class IssueComment(BASE): issue = relation( 'Issue', foreign_keys=[issue_uid], remote_side=[Issue.uid], - backref='comments') + order_by="IssueComment.date_created", backref='comments') user = relation('User', foreign_keys=[user_id], remote_side=[User.id], backref='comment_issues')