Fix merge lapsus on order by construction

This commit is contained in:
Tomaž Jerman
2022-02-07 09:21:31 +01:00
parent 849ac9410c
commit 440354e431
-4
View File
@@ -442,10 +442,6 @@ func setOrderBy(q squirrel.SelectBuilder, sort filter.SortExprSet, sortable map[
sqlSort[i] = c.Column
}
if sort[i].Descending {
sqlSort[i] += " DESC"
}
// Let DB specific sort handler determine the appropriate syntax
sqlSort[i] = sortHandler(sqlSort[i], sort[i].Descending)
}