Update webview-ui/src/components/mcp/marketplace/McpMarketplaceView.tsx

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
This commit is contained in:
pashpashpash 2025-02-17 20:27:11 -08:00 committed by GitHub
parent b7519a3669
commit 9c840fc89c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,7 +48,7 @@ const McpMarketplaceView = () => {
case "name":
return a.name.localeCompare(b.name)
case "newest":
return b.githubStars - a.githubStars // FIXME: b.createdAt - a.createdAt // Assuming there's a createdAt field
return new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime()
default:
return 0
}