File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/dashboard/Data/Browser Expand file tree Collapse file tree 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 {
9797 < Dropdown
9898 value = { this . state . target }
9999 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 > ) }
101101 </ Dropdown >
102102 ) ;
103103 }
@@ -189,7 +189,7 @@ export default class AddColumnDialog extends React.Component {
189189 < Dropdown
190190 value = { this . state . type }
191191 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 > ) }
193193 </ Dropdown >
194194 ) ;
195195 return (
You can’t perform that action at this time.
0 commit comments