Commit c0164083 authored by neclimdul's avatar neclimdul

Add support for removing and, or and of

parent a674285e
......@@ -93,5 +93,11 @@ function _views_natural_sort_store_node($node) {
* Filtered value.
*/
function _views_natural_sort_filter_content($content) {
return preg_replace('/^(The|A)\s/i', '', $content);
return preg_replace(array(
'/^(The|A)\s/i',
'/\s(and|of|or)\s/i',
), array(
'',
' ',
), $content);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment