Skip to content

Commit 00f77cb

Browse files
chore: update ecosystem page ordering based on count (#978)
## This PR - Updates the sort order of the `Technology` and `Vendor` filters to be based on the count of the number of providers. This could help encourage vendors to increase their number of supported platforms. - The technology section we could keep by name, but I also think there is a directional signal by seeing there are ~40 Javascript providers and only 3 for Rust. Signed-off-by: Jonathan Norris <[email protected]>
1 parent 1140eba commit 00f77cb

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/pages/ecosystem.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export default function Ecosystem() {
131131
<span className="font-medium text-content">Technology</span>
132132
<RefinementList
133133
attribute="technology"
134-
sortBy={['name:asc']}
134+
sortBy={['count:desc']}
135135
classNames={{
136136
count:
137137
'ml-2 px-2 rounded-md bg-gray-50 px-2 py-1 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-500/10',
@@ -145,10 +145,7 @@ export default function Ecosystem() {
145145
<span className="font-medium text-content">Vendor</span>
146146
<RefinementList
147147
attribute="vendor"
148-
// Perform a case insensitive sort
149-
sortBy={(a, b) => {
150-
return a.name.localeCompare(b.name);
151-
}}
148+
sortBy={['count:desc']}
152149
limit={VENDORS_SHOWN_AS_FACET}
153150
classNames={{
154151
count:

0 commit comments

Comments
 (0)