about summary refs log tree commit diff
path: root/src/db.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/db.rs')
-rw-r--r--src/db.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/db.rs b/src/db.rs
index baf404af2a2f..0ff716f708f1 100644
--- a/src/db.rs
+++ b/src/db.rs
@@ -30,7 +30,9 @@ impl Handler<ListThreads> for DbExecutor {
         use schema::threads::dsl::*;
 
         let conn = self.0.get()?;
-        let results = threads.load::<Thread>(&conn)?;
+        let results = threads
+            .order(posted.desc())
+            .load::<Thread>(&conn)?;
         Ok(results)
     }
 }