Fixed sorting function