Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
V
views_natural_sort
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
views_natural_sort
Commits
fe5a7557
Commit
fe5a7557
authored
Nov 25, 2012
by
generalredneck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forgot a replacement for beginning words that was making sorting go wrong.
parent
5b2ead16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
views_natural_sort.module
views_natural_sort.module
+1
-0
No files found.
views_natural_sort.module
View file @
fe5a7557
...
...
@@ -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
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment