add SortName client side sort option (#1612)

This commit is contained in:
jeffvli
2026-01-28 20:45:47 -08:00
parent 78aebd7c5d
commit ced3b491ff
10 changed files with 54 additions and 18 deletions
@@ -196,6 +196,7 @@ const normalizeSong = (
releaseYear: item.year || null,
sampleRate: item.samplingRate || null,
size: item.size,
sortName: item.title,
tags: null,
trackNumber: item.track || 1,
trackSubtitle: null,
@@ -321,6 +322,7 @@ const normalizeAlbum = (
(item as z.infer<typeof ssType._response.album>).song?.map((song) =>
normalizeSong(song, server, pathReplace, pathReplaceWith, undefined, discTitleMap),
) || [],
sortName: item.title,
tags: null,
updatedAt: item.created,
userFavorite: Boolean(item.starred) || false,