Sort functionality is not working as per the design