generated from yiisoft/package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
type:enhancementEnhancementEnhancement
Description
Proposed new feature or change
Add the ability to provide array|string|ExpressionInterface as the sort direction, which will be used as a parameter for Query::orderBy().
'name' => [
'asc' => new Expression("(substring(name, '^[0-9]+'))::int ASC, lower(name) ASC, LENGTH(name) ASC, split_part(name, '/', 2) ASC"),
'desc' => new Expression("(substring(name, '^[0-9]+'))::int DESC, lower(name) DESC, LENGTH(name) DESC, split_part(name, '/', 2) DESC"),
],Metadata
Metadata
Assignees
Labels
type:enhancementEnhancementEnhancement