fixed the number sorter