function views_handler_sort_null_field::sort_options in Views Sort Null Field 7
Provide a list of options for the default sort form. Should be overridden by classes that don't override sort_form
Overrides views_handler_sort::sort_options
File
- ./
views_handler_sort_null_field.inc, line 12
Class
- views_handler_sort_null_field
- Sort handler for NULL values on FieldAPI fields.
Code
function sort_options() {
// ASC puts NULL last, as ISNULL is 1 for NULLs, and 0 for non-NULLs.
return array(
'ASC' => t('Sort NULL last'),
'DESC' => t('Sort NULL first'),
);
}