Skip to content

Commit 940c8c8

Browse files
committed
Sort by total children DESC, status, name ASC
1 parent af19599 commit 940c8c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/MigrationDetails/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ function Table({ details }) {
207207
filters[status] ? rows :
208208
rows.concat((details[status]).map(name => ([name, status])))
209209
), []).sort((a, b) => (
210-
ORDERED.findIndex(x => x[0] == a[1]) - ORDERED.findIndex(x => x[0] == b[1])
210+
feedstock[b[0]]["num_descendants"] - feedstock[a[0]]["num_descendants"]
211+
|| ORDERED.findIndex(x => x[0] == a[1]) - ORDERED.findIndex(x => x[0] == b[1])
211212
|| a[0].localeCompare(b[0]))
212213
);
213214
return (

0 commit comments

Comments
 (0)