We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 989b395 commit 04c01d0Copy full SHA for 04c01d0
2 files changed
OpenFlow/src/DatabaseConnection.ts
@@ -289,7 +289,13 @@ export class DatabaseConnection {
289
var mysort: Object = {};
290
if (orderby) {
291
if (typeof orderby === "string" || orderby instanceof String) {
292
- mysort[(orderby as string)] = 1;
+ var neworderby = null;
293
+ try {
294
+ neworderby = JSON.parse((orderby as string));
295
+ mysort = neworderby;
296
+ } catch (error) {
297
+ }
298
+ if (neworderby == null) mysort[(orderby as string)] = 1;
299
} else {
300
mysort = orderby;
301
}
VERSION
@@ -1 +1 @@
1
-0.0.537
+0.0.538
0 commit comments