src/Thybag/SharePointAPI.php
private function sortXML (array $sort) {
		// On no count, no need to sort
		if (count($sort) == 0) {
			return '';
		}

		$queryString = '';
		foreach ($sort as $col => $value) {
			$queryString .= '<FieldRef Name="' . $col . '" Ascending="' . $this->getSortFromValue($value) . '" />';
		}
		return '<OrderBy>' . $queryString . '</OrderBy>';
	}
private function sortXML (array $sort) {
		// On no count, no need to sort
		if (count($sort) == 0) {
			return '';
		}

		$queryString = '';
		foreach ($sort as $col => $value) {
			$queryString .= '<FieldRef Name="' . $col . '" Ascending="' . $this->getSortFromValue($value) . '" />';
		}
		return '<OrderBy>' . $queryString . '</OrderBy>';
	}
private function sortXML ( array $ sort ) { // On no count, no need to sort if ( count ( $ sort ) == 0 ) { return '' ; } $ queryString = '' ; foreach ( $ sort as $ col => $ value ) { $ queryString .= '<FieldRef Name="' . $ col . '" Ascending="' . $ this -> getSortFromValue ( $ value ) . '" />' ; } return '<OrderBy>' . $ queryString . '</OrderBy>' ; }
Sort XML
Generates XML for sort

@param Array $sort array('<col>' => 'asc | desc')
@return XML DATA
Sort XML Generates XML for sort