Fixed sorting by numbers