Sorting class

access public
package kocuj_sitemap

 Methods

Get singleton instance

getInstance() : object
Static
access public

Returns

objectSingleton instance

Sort elements

sortElements(array $data, string $sortOrder) : array
access public

Parameters

$data

array

Data to sort

$sortOrder

string

Sort order: can be "asc" or "desc"

Returns

arraySorted data

Disable cloning of object

__clone() : void
access private

Constructor

__construct() : void
access private

 Properties

 

Singleton instance

$instance : object

Default

NULL
Static
access private