| 1680 | } else if (sortRule === 'priority') { | 1680 | } else if (sortRule === 'priority') { |
| 1681 | // First constant, then normal, then disabled. | 1681 | // First constant, then normal, then disabled. |
| 1682 | primarySort = (a, b) => { | 1682 | primarySort = (a, b) => { |
| 1683 | const aValue = a.constant ? 0 : a.disable ? 2 : 1; | 1683 | const aValue = a.disable ? 2 : a.constant ? 0 : 1; |
| 1684 | const bValue = b.constant ? 0 : b.disable ? 2 : 1; | 1684 | const bValue = b.disable ? 2 : b.constant ? 0 : 1; |
| 1685 | return aValue - bValue; | 1685 | return aValue - bValue; |
| 1686 | }; | 1686 | }; |
| 1687 | } else { | 1687 | } else { |