Skip to content

Commit

Permalink
♻️ refactor(TagCardList): default sort is count desc
Browse files Browse the repository at this point in the history
  • Loading branch information
Yu-Core committed Apr 28, 2024
1 parent 82291ed commit bb92092
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -93,10 +93,10 @@ private void LoadView()
{
sortOptions = new()
{
{"Sort.Name.Desc", it => it.OrderByDescending(t => t.Name) },
{"Sort.Name.Asc", it => it.OrderBy(t => t.Name) },
{"Sort.Count.Desc", it => it.OrderByDescending(GetDiaryCount) },
{"Sort.Count.Asc", it => it.OrderBy(GetDiaryCount) },
{"Sort.Name.Desc", it => it.OrderByDescending(t => t.Name) },
{"Sort.Name.Asc", it => it.OrderBy(t => t.Name) },
{"Sort.Time.Desc", it => it.OrderByDescending(t => t.CreateTime) },
{"Sort.Time.Asc", it => it.OrderBy(t => t.CreateTime) },
};
Expand Down

0 comments on commit bb92092

Please sign in to comment.