We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa5230d commit 5a14c2bCopy full SHA for 5a14c2b
src/endpoints/mods.rs
@@ -29,6 +29,7 @@ pub enum IndexSortType {
29
Downloads,
30
RecentlyUpdated,
31
RecentlyPublished,
32
+ Oldest,
33
Name,
34
NameReverse,
35
}
src/types/models/mod_entity.rs
@@ -199,6 +199,7 @@ impl Mod {
199
IndexSortType::Downloads => "q.download_count DESC",
200
IndexSortType::RecentlyUpdated => "q.updated_at DESC",
201
IndexSortType::RecentlyPublished => "q.created_at DESC",
202
+ IndexSortType::Oldest => "q.created_at ASC",
203
IndexSortType::Name => "q.name ASC",
204
IndexSortType::NameReverse => "q.name DESC",
205
};
0 commit comments