adjusting the order by view backend