. */ require_once('BaseTransform.php'); /** * Subclass this and implement the "sort" function to create * a sort transform using your own criteria. */ abstract class SortTransform extends BaseTransform { public function getTransformedData() { usort($this->data, array($this, 'sort')); return $this->data; } /** * @param $a array: associative array of 1 form entry * @param $b array: associative array of 1 form entry * @return int -1 if a>b, 0 if a==b, 1 if a