Skip to content

Commit

Permalink
Small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Herbert Gainor committed Sep 30, 2022
1 parent 51b7e12 commit c90e223
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions superset-frontend/src/explore/actions/saveModalActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,12 @@ export function fetchDashboards(userId) {
value: id,
label: (json.result[index] || {}).dashboard_title,
}));
choices.sort((a, b) => {
const labelA = a.label.toUpperCase();
const labelB = b.label.toUpperCase();
return labelA.localeCompare(labelB, {
choices.sort((a, b) =>
a.label.localeCompare(b.label, {
sensitivity: 'base',
numeric: true,
});
});
}),
);

return dispatch(fetchDashboardsSucceeded(choices));
})
Expand Down

0 comments on commit c90e223

Please sign in to comment.