Actions

API17

JArrayHelper::sortObjects

From Joomla! Documentation

Revision as of 16:55, 20 April 2011 by Doxiki2 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

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

Description:JArrayHelper::sortObjects [Edit Descripton]

Since

Joomla 11.1

Synopsis

public static JArrayHelper::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 casesensitive or insensitive
$locale array false Let sort occur using the locale language or not

Returns

array The sorted array of objects

Defined in

libraries/joomla/utilities/arrayhelper.php

Referenced by

See also

[Edit See Also]

SeeAlso:JArrayHelper::sortObjects

Examples

<CodeExamplesForm />