We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8ba3b9 commit 1f342b7Copy full SHA for 1f342b7
client/modules/IDE/selectors/collections.js
@@ -37,6 +37,11 @@ const getSortedCollections = createSelector(
37
return orderBy(collections, 'name', 'desc');
38
}
39
return orderBy(collections, 'name', 'asc');
40
+ } else if (field === 'numItems') {
41
+ if (direction === DIRECTION.DESC) {
42
+ return orderBy(collections, 'items.length', 'desc');
43
+ }
44
+ return orderBy(collections, 'items.length', 'asc');
45
46
const sortedCollections = [...collections].sort((a, b) => {
47
const result =
0 commit comments