Vix volume sorting
This commit is contained in:
@@ -10,7 +10,10 @@
|
|||||||
import { deleteVolume, mangaStats, volumes } from '$lib/settings';
|
import { deleteVolume, mangaStats, volumes } from '$lib/settings';
|
||||||
|
|
||||||
function sortManga(a: Volume, b: Volume) {
|
function sortManga(a: Volume, b: Volume) {
|
||||||
return a.mokuroData.volume.localeCompare(b.mokuroData.volume);
|
return a.mokuroData.volume.localeCompare(b.mokuroData.volume, undefined, {
|
||||||
|
numeric: true,
|
||||||
|
sensitivity: 'base'
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
$: manga = $catalog?.find((item) => item.id === $page.params.manga)?.manga.sort(sortManga);
|
$: manga = $catalog?.find((item) => item.id === $page.params.manga)?.manga.sort(sortManga);
|
||||||
|
|||||||
Reference in New Issue
Block a user