[UI] Order groups in join descending order in profiles

This commit is contained in:
Alexei Sorokin 2020-05-05 16:25:02 +03:00
parent 6c844315aa
commit e5ee069f4a

View File

@ -337,6 +337,7 @@ class Profile extends Managed_DataObject
$gm = new Group_member(); $gm = new Group_member();
$gm->profile_id = $this->id; $gm->profile_id = $this->id;
$gm->orderBy('created DESC');
if ($gm->find()) { if ($gm->find()) {
while ($gm->fetch()) { while ($gm->fetch()) {