Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Sorting by last name goes wrong when having multiple words as last name

@henrywright

Moderator

@shanebp Maybe just remove the first word from the string? i.e.

strstr( 'Robin van Persie', ' ' )

which gives  van Persie. Then you just need remove the initial space:

substr( ' van Persie', 1 )

@nielspilon if the sorting is fine (van, de etc) then that is down to luck 🙂

Skip to toolbar