views exposed "sort by"
I just had this problem (well, similar) and I solved it the following way:


/**
 * Implements hook_views_pre_build().
 */
function MY_MODULE_views_pre_build(&amp;$view) {
  // Trigger this only for the needed view
  if ($view-&gt;name == 'my_view_name') {
    // Check the exposed input array to see what the user submitted
    $exposed_input_arr = $view-&gt;get_exposed_input();
    // Write your exposed array checking logic here ...
    //if (empty($exposed_input_arr['field_sort_by']) || ...) {
      // Remove the sort field from the view
      unset($view-&gt;sort['field_sort_by']);
    //}
  }
}