diff --git a/src/components/providers-page/top-pagination.astro b/src/components/providers-page/top-pagination.astro index 9f162c6e..d04aa517 100644 --- a/src/components/providers-page/top-pagination.astro +++ b/src/components/providers-page/top-pagination.astro @@ -2,8 +2,8 @@

Get Started { // Loop through the tags in each blog post - project.data.tags.forEach((tag) => { + project.data.tags.forEach((tag: any) => { // Capitalize the first letter of the tag const lowerCasedTag = tag.toLowerCase(); // Check if the tag is not already in the allTags array diff --git a/src/pages/ecosystem/showcase/latest/[...page].astro b/src/pages/ecosystem/showcase/latest/[...page].astro index 55313266..2d4a5565 100644 --- a/src/pages/ecosystem/showcase/latest/[...page].astro +++ b/src/pages/ecosystem/showcase/latest/[...page].astro @@ -16,6 +16,7 @@ import TagsSortDropDown from "@/components/ecosystem-pages/tags-sort-dropdown"; import TopMargin from "@/components/ui/top-margin.astro"; import TopHeader from "@/components/ecosystem-pages/top-header.astro"; import Categories from "@/components/ecosystem-pages/categories.astro"; +import { getPriorityIndex } from "@/utils/sequences/deployedOnAkash"; type Project = CollectionEntry<"Ecosystem_Page">; // Define a function to generate static paths @@ -129,20 +130,26 @@ const pathName = astroUrl.pathname.split("/"); class="mt-4 grid flex-shrink-0 grid-cols-1 gap-y-[24px] sm:grid-cols-2 sm:gap-x-8 md:gap-y-8 lg:grid-cols-3 lg:gap-x-[36px] lg:gap-y-[32px]" > { - page.data.map((project: Project, i: number) => { - return ( - - ); - }) + [...page.data] + .sort( + (a, b) => + getPriorityIndex(a.data.projectTitle) - + getPriorityIndex(b.data.projectTitle), + ) + ?.map((project: Project, i: number) => { + return ( + + ); + }) }