API17

Difference between revisions of "JArrayHelper::sortObjects"

From Joomla! Documentation

m (JoomlaWikiBot moved page JArrayHelper::sortObjects/11.1 to API17:JArrayHelper::sortObjects without leaving a redirect: Robot: Moved page)
m (→‎See also: moving preparation)
(One intermediate revision by the same user not shown)
Line 55: Line 55:
 
===See also===
 
===See also===
 
* {{JVer|11.1}} '''JArrayHelper::sortObjects source code''' on [[jplatform:utilities/arrayhelper.php#cl-286|BitBucket]]
 
* {{JVer|11.1}} '''JArrayHelper::sortObjects source code''' on [[jplatform:utilities/arrayhelper.php#cl-286|BitBucket]]
* {{JVer|11.1}} Class [[JArrayHelper/11.1|JArrayHelper]]
+
* {{JVer|11.1}} Class [[API17:JArrayHelper|JArrayHelper]]
* {{JVer|11.1}} Subpackage [[Subpackage_Utilities/11.1|Utilities]]
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Utilities|Utilities]]
* [[JArrayHelper::sortObjects|Other versions of JArrayHelper::sortObjects]]
+
* [[API17:JArrayHelper::sortObjects|Other versions of JArrayHelper::sortObjects]]
 
{{SeeAlso:JArrayHelper::sortObjects}}
 
{{SeeAlso:JArrayHelper::sortObjects}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
Line 73: Line 73:
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JArrayHelper]][[Category:JArrayHelper::sortObjects]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Revision as of 19:44, 11 May 2013

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JArrayHelper::sortObjects[edit]

Description[edit]

Utility function to sort an array of objects on a given field.

Template:Description:JArrayHelper::sortObjects [Edit Descripton]

public static function sortObjects (
        &$a
        $k
        $direction=1
        $casesensitive=true
        $locale=false
)
Parameter Type Default Description
&$a array $arr An array of objects
$k array The key or a array of key to sort on
$direction array 1 Direction or an array of direction to sort in [1 = Ascending] [-1 = Descending]
$casesensitive array true Let sort occur case sensitive or insensitive
$locale array false Let sort occur using the locale language or not
  • Returns array The sorted array of objects
  • Defined on line 294 of libraries/joomla/utilities/arrayhelper.php
  • Since Joomla 11.1

See also[edit]

Template:SeeAlso:JArrayHelper::sortObjects [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />