+ $context = isset($_REQUEST['context']) ? CRM_Utils_Type::escape($_REQUEST['context'], 'String') : NULL;
+ if ($context != 'financialBatch') {
+ $sortMapper = array(
+ 0 => 'title',
+ 1 => 'type_id.label',
+ 2 => 'item_count',
+ 3 => 'total',
+ 4 => 'status_id.label',
+ 5 => 'created_id.sort_name',
+ );
+ }
+ else {
+ $sortMapper = array(
+ 1 => 'title',
+ 2 => 'payment_instrument_id.label',
+ 3 => 'item_count',
+ 4 => 'total',
+ 5 => 'status_id.label',
+ 6 => 'created_id.sort_name',
+ );
+ }