In MySQL how do I define a custom sorting order.
To try to explain what I want consider this table:
ID Language Text 0 ENU a 0 JPN
For Yii2 framework we cab achieve by following way
Project::find() ->orderBy([new Expression('FIELD(pid_is_t_m,2,0,1)'),'task_last_work'=> SORT_ASC]) ->all();