This is a little cheaper:
ranges = range.forEach(fun(a) { a.reverse(); };
ranges.reverse();