Commit f5e443e3 authored by Oleksii Savran's avatar Oleksii Savran

Order crops by size

parent 061e95f8
......@@ -45,7 +45,7 @@ class BrowsePage extends React.Component<IBrowsePageProps> {
<PageContents className="pt-1rem">
{ error && <ErrorMessage error={ error }/> }
<GridContainer>
{ crops && crops.sort((a, b) => a.name.localeCompare(b.name)).map((crop) => <CropCard key={ crop.shortName } crop={ crop } compact />) }
{ crops && crops.sort((a, b) => b.accessionCount - a.accessionCount).map((crop) => <CropCard key={ crop.shortName } crop={ crop } compact />) }
</GridContainer>
</PageContents>
<Authorize role="ROLE_ADMINISTRATOR">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment