DefaultReceiptSort

Revised: 10Apr2013

Sorting data is the third step in building a receipt. Modules implementing DefaultReceiptSort take the array of records from the second step, rearrange the order, and return it. Subclasses must implement the method sort which takes an array of records as an argument and also returns an array of records.

Example:

class ExampleSort extends DefaultReceiptSort {
	function filter($rowset){
		return array_reverse($rowset);
	}
}


Change Log:

10Apr13 Andy Theuninck - Created document