mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-12 09:26:33 +01:00
Fix persona filter rule
This commit is contained in:
parent
21edb655d3
commit
bddfd5763b
@ -6010,8 +6010,8 @@ function sortPersonas(personas) {
|
||||
const option = $('#persona_sort_order').find(':selected');
|
||||
if (option.attr('value') === 'search') {
|
||||
personas.sort((a, b) => {
|
||||
const aScore = personasFilter.getScore(FILTER_TYPES.WORLD_INFO_SEARCH, a);
|
||||
const bScore = personasFilter.getScore(FILTER_TYPES.WORLD_INFO_SEARCH, b);
|
||||
const aScore = personasFilter.getScore(FILTER_TYPES.PERSONA_SEARCH, a);
|
||||
const bScore = personasFilter.getScore(FILTER_TYPES.PERSONA_SEARCH, b);
|
||||
return (aScore - bScore);
|
||||
});
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user