Commit fe5a7557 authored by generalredneck's avatar generalredneck

Forgot a replacement for beginning words that was making sorting go wrong.

parent 5b2ead16
......@@ -144,6 +144,7 @@ function views_natural_sort_encode($string) {
// Remove words from the beginning only!
if (!empty($beginning_words)) {
$regex[] = '/^(' . implode('|', $beginning_words) . ')\s+/i';
$replace[]='';
}
// Remove words reguardless where they are as long as they are a word.
if (!empty($words)) {
......
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