mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-08 15:04:29 +00:00
fix: default ordering on search listing (#16315)
This commit is contained in:
parent
84fdc77dec
commit
b43cfb0dad
@ -11,8 +11,8 @@ public class SearchSortFilter {
|
|||||||
|
|
||||||
public SearchSortFilter(
|
public SearchSortFilter(
|
||||||
String sortField, String sortType, String sortNestedPath, String sortNestedMode) {
|
String sortField, String sortType, String sortNestedPath, String sortNestedMode) {
|
||||||
this.sortField = sortField;
|
this.sortField = sortField == null ? "name.keyword" : sortField;
|
||||||
this.sortType = sortType;
|
this.sortType = sortType == null ? "asc" : sortType;
|
||||||
this.sortNestedPath = sortNestedPath;
|
this.sortNestedPath = sortNestedPath;
|
||||||
this.sortNestedMode = sortNestedMode;
|
this.sortNestedMode = sortNestedMode;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user