diff --git a/packages/frontend-core/src/fetch/DataFetch.js b/packages/frontend-core/src/fetch/DataFetch.js index 338e6e0405..345e58ac42 100644 --- a/packages/frontend-core/src/fetch/DataFetch.js +++ b/packages/frontend-core/src/fetch/DataFetch.js @@ -136,14 +136,12 @@ export default class DataFetch { } // Determine what sort type to use - if (!this.options.sortType) { - let sortType = "string" - if (sortColumn) { - const type = schema?.[sortColumn]?.type - sortType = type === "number" ? "number" : "string" - } - this.options.sortType = sortType + let sortType = "string" + if (sortColumn) { + const type = schema?.[sortColumn]?.type + sortType = type === "number" ? "number" : "string" } + this.options.sortType = sortType // Build the lucene query let query = this.options.query