mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-06 00:04:39 +00:00
feat: add sorting by year
This commit is contained in:
parent
28efc5a98c
commit
d343aa839c
2 changed files with 14 additions and 6 deletions
|
@ -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,
|
||||
};
|
||||
|
|
|
@ -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",
|
||||
},
|
||||
],
|
||||
|
|
Loading…
Add table
Reference in a new issue