fixed sorting issue on control