Fixed order by clause to allow order by view