Skip to content

Commit b6b0688

Browse files
authored
Correct priority sort. Fixes #5777
Return correct order when only one member has priority.
1 parent 6dfed10 commit b6b0688

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/core/services/rowSorter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,11 @@ module.service('rowSorter', ['$parse', 'uiGridConstants', function ($parse, uiGr
358358
}
359359
}
360360
// Only A has a priority
361-
else if (a.sort.priority || a.sort.priority === undefined) {
361+
else if (a.sort.priority !== undefined) {
362362
return -1;
363363
}
364364
// Only B has a priority
365-
else if (b.sort.priority || b.sort.priority === undefined) {
365+
else if (b.sort.priority !== undefined) {
366366
return 1;
367367
}
368368
// Neither has a priority

0 commit comments

Comments
 (0)