mojira.dev
MC-144496

Selectors have inconsistent return order

The return order for selectors is no longer consistent. I am unsure as to whether or not this is works as intended / invalid, as the default sort setting sort=arbitrary makes no promises regarding return order. However, prior to 19w08a, the return order would always be "oldest first".

To demonstrate this:

1. create a new superflat world without any entities.
2. Summon a chicken, cow, pig, and sheep, in that order
3. Run the following command: /execute as @e run say @s

If you do this in 19w07a, the output is always

[Playername] Playername
[Chicken] Chicken
[Cow] Cow
[Pig] Pig
[Sheep] Sheep

However, if done in 19w08a, the output varies.

Comments 3

Seems to be fixed as of 1.14pre5. Any info on how sort=arbitrary returns its output would be nice

Appears to be fixed as of 1.14.1pre1. Any updates on the status of this report would be nice

Still seems fixed as of 1.14.1

Ely G

(Unassigned)

Unconfirmed

(Unassigned)

Minecraft 1.13.2, Minecraft 19w08a, Minecraft 19w08b, Minecraft 19w09a, Minecraft 19w11a, ..., Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 1, Minecraft 1.14 Pre-Release 2

Minecraft 1.14.1

Retrieved