API17:JArrayHelper:: sortObjects
From Joomla! Documentation
(Difference between revisions)
(Bulk upload by Doxiki2) |
(Updated to r1448:247ba8d88526) |
||
| (One intermediate revision by one user 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> | ||
| − | |||
| − | |||
| − | |||
<source lang="php"> | <source lang="php"> | ||
| − | public static | + | 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''' int Comparison status | |
| − | int Comparison status | + | * '''Defined''' on line 323 of libraries/joomla/utilities/arrayhelper.php |
| − | + | * '''Since''' {{JVer|11.1 }} | |
| − | libraries/joomla/utilities/arrayhelper.php | + | |
| − | + | ||
===See also=== | ===See also=== | ||
| + | * {{JVer|11.1}} '''JArrayHelper::_sortObjects source code''' on [[jplatform:utilities/arrayhelper.php#cl-315|BitBucket]] | ||
| + | * {{JVer|11.1}} Class [[JArrayHelper/11.1|JArrayHelper]] | ||
| + | * {{JVer|11.1}} Subpackage [[Subpackage_Utilities/11.1|Utilities]] | ||
| + | * [[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> | ||
| − | + | ===User contributed notes=== | |
| − | + | ||
| − | + | ||
| − | === | + | |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 52: | Line 52: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JArrayHelper]][[Category:JArrayHelper::_sortObjects]]</noinclude> | <noinclude>[[Category:JArrayHelper]][[Category:JArrayHelper::_sortObjects]]</noinclude> | ||
Revision as of 20:10, 27 April 2011
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.
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
See also
-
JArrayHelper::_sortObjects source code on BitBucket
-
Class JArrayHelper
-
Subpackage Utilities
- Other versions of JArrayHelper::_sortObjects
SeeAlso:JArrayHelper:: sortObjects [Edit See Also]
User contributed notes
<CodeExamplesForm />
