Fix array ordering

This wouldn't work as expected if run in IRB