Output selections in a fixed order

Makes things more predictable and easier to test.