fix dataProvider getSort()

correct creation of new Sort object if none is there
Merge branch 'master' of github.com:yiisoft/yii2

* 'master' of github.com:yiisoft/yii2:
  set default format for gridview to text