try {
api.dispatch(progressIndicatorActions.START_WORKING(this.getId()));
const listResults = await this.services.groupsService
- .contents(userUuid, {
+ .contents('', {
...dataExplorerToListParams(dataExplorer),
order: getOrder(dataExplorer),
filters,
? OrderDirection.ASC
: OrderDirection.DESC;
+ // Use createdAt as a secondary sort column so we break ties consistently.
return order
.addOrder(sortDirection, sortColumn.sort.field, GroupContentsResourcePrefix.COLLECTION)
.addOrder(sortDirection, sortColumn.sort.field, GroupContentsResourcePrefix.PROJECT)
+ .addOrder(OrderDirection.DESC, "createdAt", GroupContentsResourcePrefix.PROCESS)
.getOrder();
} else {
return order.getOrder();