From 26622cb84b6744ec991c39d07492bb74d3a504a4 Mon Sep 17 00:00:00 2001 From: Alexei Sorokin Date: Tue, 5 May 2020 16:25:02 +0300 Subject: [PATCH] [UI] Order groups in join descending order in profiles --- classes/Profile.php | 1 + 1 file changed, 1 insertion(+) diff --git a/classes/Profile.php b/classes/Profile.php index 17fe104070..17e0409b2d 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -337,6 +337,7 @@ class Profile extends Managed_DataObject $gm = new Group_member(); $gm->profile_id = $this->id; + $gm->orderBy('created DESC'); if ($gm->find()) { while ($gm->fetch()) {