Skip to content

Commit ca947a5

Browse files
committed
fix: OU-1195 update .sort() function in useEditableProjects
1 parent 1df42ae commit ca947a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/src/components/dashboards/perses/hooks/useEditableProjects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const useEditableProjects = () => {
8888
const editableProjectNames = getEditableProjects(persesUserPermissions, allAvailableProjects);
8989

9090
// Sort projects alphabetically
91-
const sortedEditableProjects = editableProjectNames.sort();
91+
const sortedEditableProjects = editableProjectNames.sort((a, b) => a.localeCompare(b));
9292
const sortedProjects = allAvailableProjects.sort((a, b) => a.localeCompare(b));
9393

9494
return {

0 commit comments

Comments
 (0)