Skip to content

Commit 9667638

Browse files
authored
Merge pull request #1160 from gautamdsheth/bugfix/language-sort-issue
Fix: sorting the terms in locale language
2 parents 6f3b41a + 507f23a commit 9667638

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/SPTermStorePickerService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,10 +531,10 @@ export default class SPTermStorePickerService {
531531
*/
532532
private sortTermByPath(a: ITerm, b: ITerm) {
533533
if (a.CustomSortOrderIndex === -1) {
534-
if (a.PathOfTerm.toLowerCase() < b.PathOfTerm.toLowerCase()) {
534+
if (a.Name.toLowerCase() < b.Name.toLowerCase()) {
535535
return -1;
536536
}
537-
if (a.PathOfTerm.toLowerCase() > b.PathOfTerm.toLowerCase()) {
537+
if (a.Name.toLowerCase() > b.Name.toLowerCase()) {
538538
return 1;
539539
}
540540
return 0;

0 commit comments

Comments
 (0)