fix: spelling errors in sorting criteria for query categories (#6173)

#### What type of PR is this?
/kind bug
/area core
/milestone 2.17.x

#### What this PR does / why we need it:
修复查询分类的排序条件拼写错误导致的错误

#### Which issue(s) this PR fixes:
Fixes #6171

#### Does this PR introduce a user-facing change?
```release-note
修复查询分类的排序条件拼写错误导致的错误
```
pull/6185/head
guqing 2024-06-27 17:02:54 +08:00 committed by GitHub
parent c59c61b251
commit 4d6450d065
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ public class PostFinderImpl implements PostFinder {
private Flux<Category> listChildrenCategories(String categoryName) {
if (StringUtils.isBlank(categoryName)) {
return client.listAll(Category.class, new ListOptions(),
Sort.by(Sort.Order.asc("metadata.creationTimeStamp"),
Sort.by(Sort.Order.asc("metadata.creationTimestamp"),
Sort.Order.desc("metadata.name")));
}
return categoryService.listChildren(categoryName);