From 3e86668397b3af3055549015a4c4e2df299a0eac Mon Sep 17 00:00:00 2001 From: Asim Regmi Date: Wed, 6 Dec 2023 10:21:06 -0600 Subject: [PATCH] changed app sorting to backend --- .../Applications/AppBrowser/AppBrowser.jsx | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/client/src/components/Applications/AppBrowser/AppBrowser.jsx b/client/src/components/Applications/AppBrowser/AppBrowser.jsx index bd120a66a..75535098e 100644 --- a/client/src/components/Applications/AppBrowser/AppBrowser.jsx +++ b/client/src/components/Applications/AppBrowser/AppBrowser.jsx @@ -18,16 +18,6 @@ const findAppTab = (categoryDict, appId) => { ); }; -const sortApps = (apps) => { - if (!apps || apps.length === 0) { - return []; - } - - return apps.sort((a, b) => - (a.label || a.appId).localeCompare(b.label || b.appId) - ); -}; - const AppBrowser = () => { const location = useLocation(); const { appVersion } = queryString.parse(location.search); @@ -85,7 +75,7 @@ const AppBrowser = () => { {Object.keys(categoryDict).map((category) => (
- {sortApps(categoryDict[category]).map((app) => ( + {categoryDict[category].map((app) => (