Skip to content

Commit 01ff6f2

Browse files
committed
sort datasets by number of activities, so those with the most metadata appear at the top
1 parent ae52aaf commit 01ff6f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/nar-v3/src/components/DatasetList.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function DatasetList(props) {
5454
</TableRow>
5555
</TableHead>
5656
<TableBody>
57-
{props.datasets.map((dataset) => (
57+
{[...props.datasets].sort((a, b) => b.activities.length - a.activities.length).map((dataset) => (
5858
<TableRow key={dataset.id}>
5959
<TableCell>
6060
<RouterLink to={uuidFromUri(dataset.id)}>

0 commit comments

Comments
 (0)