- Default sorts!

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-02-20 19:07:23 -05:00
parent 6b7b34ae79
commit 83d702f12b
5 changed files with 59 additions and 14 deletions

View File

@@ -87,6 +87,8 @@ export async function generateTemplate(templateQueryToExecute, templateObject, u
if (templateObject?.sorters && templateObject?.sorters?.length) {
applySorters(ast, templateObject.sorters);
} else if (templateObject?.defaultSorters && templateObject?.defaultSorters?.length) {
applySorters(ast, templateObject.defaultSorters);
}
const finalQuery = printQuery(ast);