It will work fine for sorting as `statusCode`. Also using underscope in that place is some kind of code style violation.

Look at https://github.com/yiisoft/yii2/wiki/Yii2-view-code-style