TwistPHP Documentation

orderByColumn

File path: dist/twist/Core/Models/Database/ProtocolJSON.model.php
Namespace: Twist\Core\Models\Database
Extends:

orderByColumn

Parameters

Name Type Description
$arrDataarrayn/a
$strColumnstringn/a
[$refDirection = SORT_ASC]n/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$arrData = array(=> 'foo'=> 'bar');
$strColumn 'foo';
$refDirection SORT_ASC;

//Call the function orderByColumn with the example vars
$resProtocolJSON = new \Twist\Core\Models\Database\ProtocolJSON();
$resProtocolJSON -> orderByColumn($arrData$strColumn$refDirection);