1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

sort by nft.created not metadata (#1605)

This commit is contained in:
mihaisc 2022-07-25 02:05:47 -07:00 committed by GitHub
parent 3a8e8b30c9
commit 0a94f72bc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -4,7 +4,7 @@ export enum SortDirectionOptions {
} }
export enum SortTermOptions { export enum SortTermOptions {
Created = 'metadata.created', Created = 'nft.created',
Relevance = '_score', Relevance = '_score',
Stats = 'stats.orders' Stats = 'stats.orders'
} }

View File

@ -147,10 +147,7 @@ export default function HomePage(): ReactElement {
title="Recently Published" title="Recently Published"
query={queryLatest} query={queryLatest}
action={ action={
<Button <Button style="text" to="/search?sort=nft.created&sortOrder=desc">
style="text"
to="/search?sort=metadata.created&sortOrder=desc"
>
All data sets and algorithms All data sets and algorithms
</Button> </Button>
} }