c2-mongoose 2.1.175 → 2.1.177

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.
@@ -186,7 +186,12 @@ var SearchFlow = /** @class */ (function () {
186
186
  {
187
187
  $facet: facet
188
188
  },
189
- ]).session(options === null || options === void 0 ? void 0 : options.session)];
189
+ ], {
190
+ collation: {
191
+ locale: "pt",
192
+ numericOrdering: true
193
+ }
194
+ }).session(options === null || options === void 0 ? void 0 : options.session)];
190
195
  case 1:
191
196
  result = _d.sent();
192
197
  if (!((0, Utils_1.isNotEmpty)(this.populate) && Array.isArray(this.populate))) return [3 /*break*/, 5];
@@ -264,7 +269,7 @@ var SearchFlow = /** @class */ (function () {
264
269
  ], {
265
270
  collation: {
266
271
  locale: "pt",
267
- // numericOrdering: true
272
+ numericOrdering: true
268
273
  }
269
274
  }).session(options === null || options === void 0 ? void 0 : options.session)];
270
275
  case 1:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.175",
3
+ "version": "2.1.177",
4
4
  "description": "Lib to make any search in database mongoose and use as basic crud",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -167,7 +167,12 @@ abstract class SearchFlow {
167
167
  {
168
168
  $facet: facet
169
169
  },
170
- ]
170
+ ], {
171
+ collation: {
172
+ locale: "pt",
173
+ numericOrdering: true
174
+ }
175
+ }
171
176
  ).session(options?.session as ClientSession)
172
177
 
173
178
  if (isNotEmpty(this.populate) && Array.isArray(this.populate)) {
@@ -241,7 +246,7 @@ abstract class SearchFlow {
241
246
  ], {
242
247
  collation: {
243
248
  locale: "pt",
244
- // numericOrdering: true
249
+ numericOrdering: true
245
250
  }
246
251
  }).session(options?.session as ClientSession)
247
252