|
|
@@ -588,7 +588,7 @@ public class ArticleService {
|
|
|
.eq(Article::getStatus, "published")
|
|
|
.eq(Article::getIsFeatured, 1)
|
|
|
.orderByAsc(Article::getSortOrder)
|
|
|
- .orderByAsc(Article::getPublishedAt);
|
|
|
+ .orderByDesc(Article::getPublishedAt);
|
|
|
List<Article> featured = articleMapper.selectList(listWrapper);
|
|
|
|
|
|
int idx = -1;
|
|
|
@@ -625,7 +625,7 @@ public class ArticleService {
|
|
|
.eq(Article::getStatus, "published")
|
|
|
.eq(Article::getIsFeatured, 1)
|
|
|
.orderByAsc(Article::getSortOrder)
|
|
|
- .orderByAsc(Article::getPublishedAt);
|
|
|
+ .orderByDesc(Article::getPublishedAt);
|
|
|
List<Article> sorted = articleMapper.selectList(renumWrapper);
|
|
|
Date now = new Date();
|
|
|
for (int i = 0; i < sorted.size(); i++) {
|