From 6e22c8154defd17112e61ba6bbbdaf3cd81cc05e Mon Sep 17 00:00:00 2001 From: Louis Date: Tue, 27 Aug 2024 13:05:51 +0700 Subject: [PATCH] chore: move remote models to bottom of the models hub --- web/screens/Hub/ModelList/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/screens/Hub/ModelList/index.tsx b/web/screens/Hub/ModelList/index.tsx index f3f39d373b..aea67b4e3b 100644 --- a/web/screens/Hub/ModelList/index.tsx +++ b/web/screens/Hub/ModelList/index.tsx @@ -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])