Hello. I tested on 8.5.9 and I can confirm the issue. The code to order by fileset is missing. I am not sure if it’s fixed in the latest version but since you’re not going to update you can fix it easily.
Edit the file concrete\blocks\document_library\controller.php
. Around line 251, look for the method setupFolderFileSetFilter()
The method looks like this with my added modification where it says my name “NOUR”
protected function setupFolderFileSetFilter(FolderItemList $list)
{
$sets = json_decode($this->setIds);
if (count($sets)) {
$query = $list->getQueryObject();
$query->leftJoin('tf', 'FileSetFiles', 'fsf', 'tf.fID = fsf.fID');
switch ($this->setMode) {
case 'all':
// Show files in ALL sets
$query->andWhere(
$query->expr()->orX(
'nt.treeNodeTypeHandle = "file_folder"',
$query->expr()->in('fsf.fsID', $sets)
)
);
break;
case 'any':
default:
// Show files in ANY of the sets
$expr = $query->expr()->orX('nt.treeNodeTypeHandle = "file_folder"');
foreach ($sets as $set) {
$expr->add($query->expr()->eq('fsf.fsID', $set));
}
$query->andWhere($expr);
break;
}
// [NOUR added this to deal with fileset order if selected ]
if ($this->orderBy === "set") {
$order = $this->displayOrderDesc ? 'desc' : 'asc';
$query->orderBy('fsf.fsDisplayOrder', $order);
}
// [NOUR end of modification]
}
return $list;
}
If you ever change your mind and want to update, I suggest you copy the modified file to application\blocks\document_library\controller.php
so you won’t lose the fix and it will still be used by the core.