Closes #3285 by allowing param to sort randomly