@marktiderman/genesis-ui-native 3.5.0 → 3.5.1

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.
@@ -1135,6 +1135,9 @@ function heldTo(link, keys) {
1135
1135
  get labelField() {
1136
1136
  return link.labelField;
1137
1137
  },
1138
+ get orderBy() {
1139
+ return link.orderBy;
1140
+ },
1138
1141
  ...link.searchFields ? { searchFields: link.searchFields } : {},
1139
1142
  filters: (scope, values) => [...link.filters(scope, values), held]
1140
1143
  });
@@ -1233,7 +1236,7 @@ function NativeLinkPicker({ field, value, onChange, values, error, testID }) {
1233
1236
  const filters = useMemo(() => JSON.parse(filtersKey), [filtersKey]);
1234
1237
  const labelField = field.labelField ?? link.labelField;
1235
1238
  const list = useLinkOptions(
1236
- { resource: link.resource, field: link.field, labelField, searchFields: link.searchFields },
1239
+ { resource: link.resource, field: link.field, labelField, searchFields: link.searchFields, orderBy: link.orderBy },
1237
1240
  { filters, search, enabled: open, untitled: words.untitled }
1238
1241
  );
1239
1242
  const loaded = isEmptyValue(value) ? void 0 : list.options.find((o) => String(o.value) === String(value));