Integrating the sorting system to the view