Skip to content

Commit 866432b

Browse files
Improve sort ordering on ReferenceInput (#677)
1 parent 2a8bdbb commit 866432b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

admin-js/src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const ReferenceInput = (props) => {
1919
const ref = props["reference"];
2020
const repr = STATE["resources"][ref]["repr"];
2121
return (
22-
<_ReferenceInput {...props}>
22+
<_ReferenceInput sort={{"field": repr, "order": "ASC"}} {...props}>
2323
<AutocompleteInput filterToQuery={s => ({[repr]: s})} />
2424
</_ReferenceInput>
2525
);

0 commit comments

Comments
 (0)