Skip to content

Commit

Permalink
comment out built in sorting for now
Browse files Browse the repository at this point in the history
  • Loading branch information
PartyWumpus authored Oct 15, 2023
1 parent 4b13175 commit ca5d3ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions frontend/src/components/store/Store.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,10 @@ const BrowseTab: FC<{ children: { setPluginCount: Dispatch<SetStateAction<Number
plugin.tags.some((tag: string) => tag.toLowerCase().includes(searchFieldValue.toLowerCase()))
);
})
.sort((a, b) => {
if (selectedSort % 2 === 1) return a.name.localeCompare(b.name);
else return b.name.localeCompare(a.name);
})
//.sort((a, b) => {
// if (selectedSort % 2 === 1) return a.name.localeCompare(b.name);
// else return b.name.localeCompare(a.name);
//})
.map((plugin: StorePlugin) => (
<PluginCard plugin={plugin} />
))}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/store.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ export async function getPluginList(sort_by : SortOptions | null=null, sort_dire
let store = await getSetting<Store>('store', Store.Default);
let customURL = await getSetting<string>('store-url', 'https://plugins.deckbrew.xyz/plugins');

let query = URLSearchParams()
let query = new URLSearchParams()
sort_by && query.set("sort_by",sort_by)
sort_direction && query.set("sort_direction", sort_direction)
query = "?"+query

let storeURL;
if (!store) {
console.log('Could not get a default store, using Default.');
Expand Down

0 comments on commit ca5d3ed

Please sign in to comment.