UPD: sort argument (time, reverse time, random)