bugfix for order by view
Merge pull request #589 from yakolee/master

bugfix for order by view