Drupal 7 views exposed filter: Removing -Any- and sorting items I am using Drupal 7.21 and views 3.7. I have date module installed. In one of my views, I want to give drop-down year as an exposed filter and it is working fine. I do have choices as
-Any-
2012
2013
But I want to remove -Any- and sort the items, so it will be like
2013
2012
I checked Required in exposed filter option without success and also used BEF module but there is not any option to do so. I also saw some blog and issue suggesting using hook__form_views_exposed_form_alter hook. I used that as http://eureka.ykyuen.info/2012/11/22/drupal-7-customize-the-exposed-filter-selection-list/ this blog suggested but in my form option there isn't even any options listed not as this blog said. 

Can anyone help me to get the exposed filter I want to show? 
Thank you
You should implement hook_form_alter on your exposed filters form (if you have devel enabled then use dpm to find the form's name).
Using the form alter sort (or just revert)  the date's array and remove the '-any-'. 
By the way to remove the '-any-' you may also use CSS which will allow you to quickly bring it back in the future if you'll want to.

I edited a similar code I used in the past according to your need, so you will need something like this:

function mymodule_form_alter(&amp;$form, &amp;$form_state, $form_id) {

  switch ($form_id) {
    case 'views_exposed_form':
      if( !empty($form['#id']) &amp;&amp; $form['#id'] == 'views-exposed-form-myview') {
        // This is the myview view

      // Remove the start date label
      if( !empty($form['field_sw_date_value']['min']['#date_label_position']) )
        $form['field_date_value']['min']['#date_label_position'] = 'none';

      // Remove the end date label
      if( !empty($form['field_sw_date_value']['max']['#date_label_position']) )
        $form['field_date_value']['max']['#date_label_position'] = 'none';
      break;
    }
}