diff --git a/x-pack/plugins/ml/public/application/model_management/test_models/models/index_input.tsx b/x-pack/plugins/ml/public/application/model_management/test_models/models/index_input.tsx index b2dbfc5c4c67a..edc085c1ec5e9 100644 --- a/x-pack/plugins/ml/public/application/model_management/test_models/models/index_input.tsx +++ b/x-pack/plugins/ml/public/application/model_management/test_models/models/index_input.tsx @@ -101,8 +101,9 @@ export const InferenceInputFormIndexControls: FC = ({ text: dataView.getIndexPattern(), value: dataView.id!, }, - ]; + ].sort((a, b) => a.text.localeCompare(b.text)); }); + setSelectedDataViewId(dataView.id!); }} />