feat: add sorting by year

This commit is contained in:
Kentai Radiquum 2024-07-16 13:26:23 +05:00
parent 28efc5a98c
commit d343aa839c
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
2 changed files with 14 additions and 6 deletions

View file

@ -1,8 +1,8 @@
export const sort = {
adding_descending: 1,
adding_ascending: 2,
// year_descending: 3,
// year_ascending: 4,
year_descending: 3,
year_ascending: 4,
alphabet_descending: 5,
alphabet_ascending: 6,
};

View file

@ -3,19 +3,27 @@ export const sort = {
ascendingIcon: "[transform:rotateX(180deg)] material-symbols--sort",
values: [
{
name: "Сначала новые",
name: "По добавлению новых",
value: "adding_descending",
},
{
name: "Сначала старые",
name: "По добавлению старых",
value: "adding_ascending",
},
{
name: "А-Я",
name: "По дате выхода новых",
value: "year_descending",
},
{
name: "По дате выхода старых",
value: "year_ascending",
},
{
name: "По алфавиту А-Я",
value: "alphabet_descending",
},
{
name: "Я-А",
name: "По алфавиту Я-А",
value: "alphabet_ascending",
},
],