src/Thybag/Service/QueryObjectService.php
public function sort ($sort_on, $order = 'desc') {
		$queryString = '<FieldRef Name="'  .$sort_on . '" Ascending="' . $this->api->getSortFromValue($order) . '" />';
		$this->sort_caml = '<OrderBy>' . $queryString . '</OrderBy>';

		return $this;
	}
public function sort ($sort_on, $order = 'desc') {
		$queryString = '<FieldRef Name="'  .$sort_on . '" Ascending="' . $this->api->getSortFromValue($order) . '" />';
		$this->sort_caml = '<OrderBy>' . $queryString . '</OrderBy>';

		return $this;
	}
public function sort ( $ sort_on , $ order = 'desc' ) { $ queryString = '<FieldRef Name="' . $ sort_on . '" Ascending="' . $ this -> api -> getSortFromValue ( $ order ) . '" />' ; $ this -> sort_caml = '<OrderBy>' . $ queryString . '</OrderBy>' ; return $ this ; }
Sort
Specify order data should be returned in.

@param $sort_on column to sort on
@param $order Sort direction
@return Ref to self
Sort Specify order data should be returned in .