<Murugan /Arun>  Added the sorting functionality to work