More changes to sorter

This commit is contained in:
Nassim Jahnke 2022-06-19 12:47:28 +02:00
parent d8e049e92d
commit 9d528b29f8
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -27,13 +27,11 @@ const ctx = useContext();
const backendData = useBackendDataStore();
const sorters = [
{ id: "stars", label: i18n.t("project.sorting.mostStars") },
{ id: "downloads", label: i18n.t("project.sorting.mostDownloads") },
{ id: "views", label: i18n.t("project.sorting.mostViews") },
{ id: "-stars", label: i18n.t("project.sorting.mostStars") },
{ id: "-downloads", label: i18n.t("project.sorting.mostDownloads") },
{ id: "-newest", label: i18n.t("project.sorting.newest") },
{ id: "-updated", label: i18n.t("project.sorting.recentlyUpdated") },
{ id: "recent_views", label: i18n.t("project.sorting.recentViews") },
{ id: "recent_downloads", label: i18n.t("project.sorting.recentDownloads") },
{ id: "-recent_downloads", label: i18n.t("project.sorting.recentDownloads") },
];
const versions = backendData.platforms