Add ORDER BY to view.sql