We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1df42ae commit ca947a5Copy full SHA for ca947a5
1 file changed
web/src/components/dashboards/perses/hooks/useEditableProjects.ts
@@ -88,7 +88,7 @@ export const useEditableProjects = () => {
88
const editableProjectNames = getEditableProjects(persesUserPermissions, allAvailableProjects);
89
90
// Sort projects alphabetically
91
- const sortedEditableProjects = editableProjectNames.sort();
+ const sortedEditableProjects = editableProjectNames.sort((a, b) => a.localeCompare(b));
92
const sortedProjects = allAvailableProjects.sort((a, b) => a.localeCompare(b));
93
94
return {
0 commit comments