integration of sorting done and change added for views files