Skip to content

Conversation

@kennylajara
Copy link
Contributor

@kennylajara kennylajara commented Mar 7, 2017

Basically, if the 3rd parameter received by the orderBy function is a string, this string is going to be considered a REGEXP. You still can send an array to order by field.

Example of use:
$MySqliDb->orderBy('name', 'desc', '^[a-zA-Z0-9]')->orderBy('name', 'desc');
// Is going to order by name but placing those name starting with special charaters at the end

Example of use:
$MySqliDb->orderBy('name', 'desc', '^[a-zA-Z0-9]')->orderBy('name', 'desc');
// Is going to order by name but placing those name starting with special charaters at the end
@avbdr avbdr merged commit 158eec4 into ThingEngineer:master Jun 2, 2017
@avbdr
Copy link
Collaborator

avbdr commented Jun 2, 2017

merged. thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants