We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffdd883 commit 57ce816Copy full SHA for 57ce816
packages/amplify_core/lib/src/types/query/query_sort.dart
@@ -22,14 +22,8 @@ class QuerySortBy {
22
final fieldName = getFieldName(field);
23
Object? valueA;
24
Object? valueB;
25
- // TODO(Jordan-Nelson): Remove try/catch at next major version bump
26
- try {
27
- valueA = a.toMap()[fieldName];
28
- valueB = b.toMap()[fieldName];
29
- } on UnimplementedError {
30
- valueA = a.toJson()[fieldName];
31
- valueB = b.toJson()[fieldName];
32
- }
+ valueA = a.toMap()[fieldName];
+ valueB = b.toMap()[fieldName];
33
final orderMultiplier = order == QuerySortOrder.ascending ? 1 : -1;
34
if (valueA == null || valueB == null) {
35
return orderMultiplier * _compareNull(valueA, valueB);
0 commit comments