APF_PostType::replyToSortCustomColumn PHP Method

replyToSortCustomColumn() public method

Modifies the way how the sample column is sorted. This makes it sorted by post ID.
See also: http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters
public replyToSortCustomColumn ( $aVars )
    public function replyToSortCustomColumn($aVars)
    {
        if (isset($aVars['orderby']) && 'samplecolumn' == $aVars['orderby']) {
            $aVars = array_merge($aVars, array('meta_key' => 'metabox_text_field', 'orderby' => 'meta_value'));
        }
        return $aVars;
    }