added new randomSort method