Query returns collection columns in random order

You can use the Javascript map() function to “remap” the output to appear as you need. I use this function a lot when I need to “fix things up”.