openxiangda-contracts 2.95.1 → 2.95.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2961,12 +2961,11 @@ function compileAnonymousPublicAccess(config) {
2961
2961
  maxLimit: Number(query.maxLimit),
2962
2962
  ...(query.sort
2963
2963
  ? {
2964
- sort: query.sort
2965
- .map((item) => ({
2964
+ // ORDER BY is a priority sequence, not a field set.
2965
+ sort: query.sort.map((item) => ({
2966
2966
  field: item.field,
2967
2967
  direction: item.direction,
2968
- }))
2969
- .sort((left, right) => compareText(left.field, right.field)),
2968
+ })),
2970
2969
  }
2971
2970
  : {}),
2972
2971
  ...(query.parameters