[GH-ISSUE #3] Getting personas sorted in the Quick Personas #1

Open
opened 2026-10-15 13:26:40 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @RaidersPlay on GitHub (Jun 8, 2026).
Original GitHub issue: https://github.com/SillyTavern/Extension-QuickPersona/issues/3

Wanted to get the personas sorted as I have different descriptions for some personas and it would be nicer to have them grouped together.
With some AI assistance, I got a code that seems to work fine.
Replace line 46 with the below 7 lines of code. (1st line is the same as line 46, used as reference where to paste)

github.com/SillyTavern/Extension-QuickPersona@5509fb6bee/index.js (L46)

const userAvatars = await getUserAvatars(false);

userAvatars.sort((a, b) => {
const nameA = (power_user.personas[a] || a).toLowerCase();
const nameB = (power_user.personas[b] || b).toLowerCase();
return nameA.localeCompare(nameB);
});

Originally created by @RaidersPlay on GitHub (Jun 8, 2026). Original GitHub issue: https://github.com/SillyTavern/Extension-QuickPersona/issues/3 Wanted to get the personas sorted as I have different descriptions for some personas and it would be nicer to have them grouped together. With some AI assistance, I got a code that seems to work fine. Replace line 46 with the below 7 lines of code. (1st line is the same as line 46, used as reference where to paste) https://github.com/SillyTavern/Extension-QuickPersona/blob/5509fb6bee903c833683cb860fbf437d4479b1cb/index.js#L46 > const userAvatars = await getUserAvatars(false); > > userAvatars.sort((a, b) => { > const nameA = (power_user.personas[a] || a).toLowerCase(); > const nameB = (power_user.personas[b] || b).toLowerCase(); > return nameA.localeCompare(nameB); > });
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
SillyTavern/Extension-QuickPersona#1
No description provided.