I'm trying to sort an array in Ruby by length and alphanumeric:
The desired order would be:
- site.com?page=7
- site.com?page=8
- site.com?page=9
- site.com?page=880
I've been trying array.sort and sort! but none of them seems to do the trick, as they will place the 880 next after 8.
How would I go about doing this the most effective way?