Added random sort with uid as seed.