mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-05 06:00:31 +00:00
parent
9a66eb6c9a
commit
38fb49edd2
@ -94,7 +94,7 @@ impl CommentView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
query = match sort {
|
query = match sort {
|
||||||
// SortType::Hot => query.order_by(hot_rank.desc()),
|
// SortType::Hot => query.order(hot_rank.desc(), published.desc()),
|
||||||
SortType::New => query.order_by(published.desc()),
|
SortType::New => query.order_by(published.desc()),
|
||||||
SortType::TopAll => query.order_by(score.desc()),
|
SortType::TopAll => query.order_by(score.desc()),
|
||||||
SortType::TopYear => query
|
SortType::TopYear => query
|
||||||
|
@ -122,7 +122,8 @@ impl PostView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
query = match sort {
|
query = match sort {
|
||||||
SortType::Hot => query.order_by(hot_rank.desc()),
|
SortType::Hot => query.order_by(hot_rank.desc())
|
||||||
|
.then_order_by(published.desc()),
|
||||||
SortType::New => query.order_by(published.desc()),
|
SortType::New => query.order_by(published.desc()),
|
||||||
SortType::TopAll => query.order_by(score.desc()),
|
SortType::TopAll => query.order_by(score.desc()),
|
||||||
SortType::TopYear => query
|
SortType::TopYear => query
|
||||||
|
Loading…
Reference in New Issue
Block a user