|
From: <rd...@us...> - 2020-05-21 21:42:47
|
Revision: 2047
http://sourceforge.net/p/digir/svn/2047
Author: rdg
Date: 2020-05-21 21:42:46 +0000 (Thu, 21 May 2020)
Log Message:
-----------
Order resources by code
Modified Paths:
--------------
tapirlink/trunk/classes/TpResources.php
Modified: tapirlink/trunk/classes/TpResources.php
===================================================================
--- tapirlink/trunk/classes/TpResources.php 2015-02-10 03:56:47 UTC (rev 2046)
+++ tapirlink/trunk/classes/TpResources.php 2020-05-21 21:42:46 UTC (rev 2047)
@@ -214,6 +214,15 @@
fclose( $fp );
+ function _CmpResources( $res1, $res2 )
+ {
+ return strcmp( $res1->GetCode(), $res2->GetCode() );
+
+ } // end of inline function _CmpResources
+
+ // Order by resource code
+ usort( $this->mResources, '_CmpResources' );
+
if ( ! defined( 'TP_RUNNING_TAPIR' ) )
{
// No need to use session when running the web service (tapir.php)
@@ -398,4 +407,4 @@
} // end of member function __sleep
} // end of TpResources
-?>
\ No newline at end of file
+?>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|