Actions

API17

Difference between revisions of "JArrayHelper:: sortObjects"

From Joomla! Documentation

(Layout updates)
m (See also: moving preparation)
 
(3 intermediate revisions by 2 users not shown)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JArrayHelper::_sortObjects|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JArrayHelper::_sortObjects|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JArrayHelper::_sortObjects (&$a, &$b)
+
public static function _sortObjects (
 +
        &$a
 +
        &$b
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 29: Line 29:
 
|array
 
|array
 
|
 
|
|$b An array of objects  
+
|$b An array of objects
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' int Comparison status
int Comparison status
+
* '''Defined''' on line 323 of libraries/joomla/utilities/arrayhelper.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/utilities/arrayhelper.php (line 322)
+
* see source code in [[jplatform:utilities/arrayhelper.php#cl-322|BitBucket]]
+
===Referenced by===
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JArrayHelper::_sortObjects source code''' on [[jplatform:utilities/arrayhelper.php#cl-315|BitBucket]]
 +
* {{JVer|11.1}} Class [[API17:JArrayHelper|JArrayHelper]]
 +
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Utilities|Utilities]]
 +
* [[API17:JArrayHelper::_sortObjects|Other versions of JArrayHelper::_sortObjects]]
 +
{{SeeAlso:JArrayHelper::_sortObjects}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JArrayHelper::_sortObjects|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JArrayHelper::_sortObjects|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JArrayHelper/11.1|JArrayHelper]]
+
===User contributed notes===
* [[JArrayHelper::_sortObjects|Other versions of this method]]
+
{{SeeAlso:JArrayHelper::_sortObjects}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 53: Line 52:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JArrayHelper]][[Category:JArrayHelper::_sortObjects]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 19:44, 11 May 2013

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JArrayHelper::_sortObjects

Description

Private callback function for sorting an array of objects on a key.

Description:JArrayHelper:: sortObjects [Edit Descripton]

public static function _sortObjects (
        &$a
        &$b
)
Parameter Type Default Description
&$a array $a An array of objects
&$b array $b An array of objects
  • Returns int Comparison status
  • Defined on line 323 of libraries/joomla/utilities/arrayhelper.php
  • Since Joomla 11.1

See also

SeeAlso:JArrayHelper:: sortObjects [Edit See Also]

User contributed notes

<CodeExamplesForm />