Fixed sorting error.