Skip to content

Commit cc08f74

Browse files
MAGETWO-71835: [Product grid] SC's values aren't sorted alphabetically in the tooltip
- Sort values case insensitive
1 parent e51df41 commit cc08f74

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/code/Magento/Ui/view/base/web/js/grid/columns/expandable.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@ define([
6767
}
6868
});
6969

70-
return labels.sort();
70+
return labels.sort(
71+
function(a, b) {
72+
return a.toLowerCase().localeCompare(b.toLowerCase());
73+
}
74+
);
7175
},
7276

7377
/**

0 commit comments

Comments
 (0)