Merge pull request #2967 from KhreedAI/staging Fix World Info Entry Priority Sort

5a5219633100e03825cc98db9ee66e0bd2a8c2cd

Cohee <18619528+Cohee1207@users.noreply.github.com>

Signed
1 files changed, +2 -2Showing whitespace changes
public/scripts/world-info.js+2 -2
@@ -1680,8 +1680,8 @@ export function sortWorldInfoEntries(data, { customSort = null } = {}) {
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 {