summaryrefslogtreecommitdiff
path: root/src/posts/abstractions/post.rs
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2024-09-14 21:11:51 -0400
committerAdam T. Carpenter <atc@53hor.net>2024-09-14 21:11:51 -0400
commitaad33fee01abe817d82c094f83ffd44ca36c8456 (patch)
tree9db9740d84f97575775cfe832a69ac2eed7d2078 /src/posts/abstractions/post.rs
parent18339f611fd17e1300593edd65adf7604a39ad72 (diff)
downloadcarpentertutoring-aad33fee01abe817d82c094f83ffd44ca36c8456.tar.xz
carpentertutoring-aad33fee01abe817d82c094f83ffd44ca36c8456.zip
feat: reverse sort posts by modify datetime
Diffstat (limited to 'src/posts/abstractions/post.rs')
-rw-r--r--src/posts/abstractions/post.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/posts/abstractions/post.rs b/src/posts/abstractions/post.rs
index 6d504db..a941281 100644
--- a/src/posts/abstractions/post.rs
+++ b/src/posts/abstractions/post.rs
@@ -1,6 +1,6 @@
use std::{borrow::Cow, fmt};
-pub trait Post: fmt::Debug {
+pub trait Post: fmt::Debug + Ord {
fn get_title(&self) -> &str;
fn get_article(&self) -> Cow<str>;
}