File tree 1 file changed +2
-2
lines changed
src/dashboard/Data/Browser
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ export default class AddColumnDialog extends React.Component {
97
97
< Dropdown
98
98
value = { this . state . target }
99
99
onChange = { ( target ) => this . setState ( { target : target } ) } >
100
- { this . props . classes . map ( ( c ) => < Option key = { c } value = { c } > { c } </ Option > ) }
100
+ { this . props . classes . sort ( ( a , b ) => a . localeCompare ( b ) ) . map ( ( c ) => < Option key = { c } value = { c } > { c } </ Option > ) }
101
101
</ Dropdown >
102
102
) ;
103
103
}
@@ -189,7 +189,7 @@ export default class AddColumnDialog extends React.Component {
189
189
< Dropdown
190
190
value = { this . state . type }
191
191
onChange = { ( type ) => this . setState ( { type : type , defaultValue : undefined , required : false } ) } >
192
- { DataTypes . map ( ( t ) => < Option key = { t } value = { t } > { t } </ Option > ) }
192
+ { DataTypes . sort ( ( a , b ) => a . localeCompare ( b ) ) . map ( ( t ) => < Option key = { t } value = { t } > { t } </ Option > ) }
193
193
</ Dropdown >
194
194
) ;
195
195
return (
You can’t perform that action at this time.
0 commit comments