admin/jqadm/src/Admin/JQAdm/Base.php
protected function getCriteriaSortations( array $params )
	{
		$sortation = [];

		foreach( $params as $sort )
		{
			if( $sort[0] === '-' ) {
				$sortation[substr( $sort, 1 )] = '-';
			} else {
				$sortation[$sort] = '+';
			}
		}

		return $sortation;
	}
protected function getCriteriaSortations( array $params )
	{
		$sortation = [];

		foreach( $params as $sort )
		{
			if( $sort[0] === '-' ) {
				$sortation[substr( $sort, 1 )] = '-';
			} else {
				$sortation[$sort] = '+';
			}
		}

		return $sortation;
	}
protected function getCriteriaSortations ( array $ params ) { $ sortation = [ ] ; foreach ( $ params as $ sort ) { if ( $ sort [ 0 ] === '-' ) { $ sortation [ substr ( $ sort , 1 ) ] = '-' ; } else { $ sortation [ $ sort ] = '+' ; } } return $ sortation ; }
Returns the array of criteria sortations based on the given parameters

@param array $params List of criteria data with condition, sorting and paging
@return array Associative list of criteria sortations
Returns the array of criteria sortations based on the given parameters