fix: default ordering on search listing (#16315)

This commit is contained in:
Teddy 2024-05-16 21:38:44 +02:00 committed by GitHub
parent 84fdc77dec
commit b43cfb0dad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,8 +11,8 @@ public class SearchSortFilter {
public SearchSortFilter(
String sortField, String sortType, String sortNestedPath, String sortNestedMode) {
this.sortField = sortField;
this.sortType = sortType;
this.sortField = sortField == null ? "name.keyword" : sortField;
this.sortType = sortType == null ? "asc" : sortType;
this.sortNestedPath = sortNestedPath;
this.sortNestedMode = sortNestedMode;
}