Skip to content

Commit

Permalink
changed app sorting to backend
Browse files Browse the repository at this point in the history
  • Loading branch information
asimregmi committed Dec 6, 2023
1 parent b1bf8c9 commit 3e86668
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions client/src/components/Applications/AppBrowser/AppBrowser.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -85,7 +75,7 @@ const AppBrowser = () => {
{Object.keys(categoryDict).map((category) => (
<TabPane tabId={category} key={`${category}tabPane`}>
<div className="apps-grid-list">
{sortApps(categoryDict[category]).map((app) => (
{categoryDict[category].map((app) => (
<div key={uuidv4()} className="apps-grid-item">
<NavLink
tag={RRNavLink}
Expand Down

0 comments on commit 3e86668

Please sign in to comment.