Sort personas by name.

This commit is contained in:
Cohee
2024-02-02 04:07:51 +02:00
parent 2f3dca2348
commit a746077a1e
5 changed files with 16 additions and 1 deletions

View File

@ -5416,6 +5416,7 @@ export async function getUserAvatars(doRender = true, openPageAt = '') {
}
const entities = personasFilter.applyFilters(allEntities);
entities.sort((a, b) => power_user.persona_sort_order === 'asc' ? a.localeCompare(b) : b.localeCompare(a));
const storageKey = 'Personas_PerPage';
const listId = '#user_avatar_block';