You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewInvalidOperationException("Value-based sort cannot be combined with other sorts. When sorting by the entire element value, no other sorting criteria can be applied.");
257
257
}
@@ -295,42 +295,25 @@ public override BsonDocument Render(RenderArgs<TDocument> args)
295
295
{
296
296
varrenderedField=_field.Render(args);
297
297
298
-
BsonValuevalue;
299
-
switch(_direction)
300
-
{
301
-
caseSortDirection.Ascending:
302
-
value=1;
303
-
break;
304
-
caseSortDirection.Descending:
305
-
value=-1;
306
-
break;
307
-
default:
308
-
thrownewInvalidOperationException("Unknown value for "+typeof(SortDirection)+".");
0 commit comments