I would like to return search results in ascending order according to their numerical 'start date' value (e.g. 1970, 1971 etc.). However, some results do not have a value for this field and instead have a '-'; currently, these results are appearing first. Is there any way to have the results that have the '-' value appear at the end of the search results? My current code is below:
$options['ind_start'] = array( 'label' => 'Start Date (Earliest)', 'query_args' => array( 'orderby' => 'meta_value_num', 'meta_key' => 'start_date', 'order' => 'ASC', ), );
Thanks in advance!