Repository: airavata-php-gateway Updated Branches: refs/heads/dreg-gateway 003801168 -> 75929d779
fixing AIRAVATA-2265 : in SciGaP latest record should be on top of the list in Gateway requests. Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/f436e6a5 Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/f436e6a5 Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/f436e6a5 Branch: refs/heads/dreg-gateway Commit: f436e6a5227a703562f17b9f460f8350b10937da Parents: dae6cd7 Author: scnakandala <supun.nakand...@gmail.com> Authored: Mon Jan 30 10:50:40 2017 -0500 Committer: scnakandala <supun.nakand...@gmail.com> Committed: Mon Jan 30 10:50:40 2017 -0500 ---------------------------------------------------------------------- app/controllers/AdminController.php | 6 ++++++ 1 file changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/f436e6a5/app/controllers/AdminController.php ---------------------------------------------------------------------- diff --git a/app/controllers/AdminController.php b/app/controllers/AdminController.php index 9735b9a..d0aa3e5 100644 --- a/app/controllers/AdminController.php +++ b/app/controllers/AdminController.php @@ -99,12 +99,18 @@ class AdminController extends BaseController { } + private function cmp($a, $b) + { + return strcmp($b->requestCreationTime, $a->requestCreationTime); + } + public function gatewayView(){ //only for super admin //Session::put("super-admin", true); $gatewaysInfo = CRUtilities::getAllGatewayProfilesData(); $gateways = $gatewaysInfo["gateways"]; + usort($gateways, array($this, "cmp")); $tokens = AdminUtilities::get_all_ssh_tokens(); $pwdTokens = AdminUtilities::get_all_pwd_tokens(); $srData = SRUtilities::getEditSRData();