sorts random numbers