Skip to content

Commit

Permalink
chore: move remote models to bottom of the models hub (#3469)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-jan authored Aug 27, 2024
1 parent 0001103 commit f6e8583
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/screens/Hub/ModelList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ const ModelList = ({ models }: Props) => {
}
})
featuredModels.sort((m1, m2) => m1.metadata.size - m2.metadata.size)
remoteModels.sort((m1, m2) => m1.name.localeCompare(m2.name))
localModels.sort((m1, m2) => m1.metadata.size - m2.metadata.size)
remainingModels.sort((m1, m2) => m1.metadata.size - m2.metadata.size)
remoteModels.sort((m1, m2) => m1.name.localeCompare(m2.name))
return [
...featuredModels,
...remoteModels,
...localModels,
...remainingModels,
...remoteModels,
]
}, [models, downloadedModels])

Expand Down

0 comments on commit f6e8583

Please sign in to comment.