Skip to content

Commit

Permalink
feat: alphabetize sources
Browse files Browse the repository at this point in the history
  • Loading branch information
katiestahl committed Oct 9, 2023
1 parent 8d67689 commit 7284d42
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/src/components/Browse/Sources/BrowseSources.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ export const BrowseSources = () => {
'POTENTIALLY_DRUGGABLE'
);

let geneSources = geneData?.sources?.nodes;
let drugSources = drugData?.sources?.nodes;
let interactionSources = interactionData?.sources?.nodes;
let potentiallyDruggableSources = potentiallyDruggableData?.sources?.nodes;
let geneSources = geneData?.sources?.nodes?.sort((a: { sourceDbName: string; }, b: { sourceDbName: any; }) => a.sourceDbName.localeCompare(b.sourceDbName));
let drugSources = drugData?.sources?.nodes?.sort((a: { sourceDbName: string; }, b: { sourceDbName: any; }) => a.sourceDbName.localeCompare(b.sourceDbName));
let interactionSources = interactionData?.sources?.nodes?.sort((a: { sourceDbName: string; }, b: { sourceDbName: any; }) => a.sourceDbName.localeCompare(b.sourceDbName));
let potentiallyDruggableSources = potentiallyDruggableData?.sources?.nodes?.sort((a: { sourceDbName: string; }, b: { sourceDbName: any; }) => a.sourceDbName.localeCompare(b.sourceDbName));

const sectionsMap = [
{
Expand Down

0 comments on commit 7284d42

Please sign in to comment.