ruby: sort! and uniq! Which to run first?

Viewed 8932

I need to run both sort! and uniq! on an array. Which is better to run first? Or is there a way to combine these into one command?

4 Answers
Related