Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-144496

Selectors have inconsistent return order

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 1.14.1
    • Minecraft 1.13.2, Minecraft 19w08a, Minecraft 19w08b, Minecraft 19w09a, Minecraft 19w11a, Minecraft 19w11b, Minecraft 19w12a, Minecraft 19w12b, Minecraft 19w13a, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 1, Minecraft 1.14 Pre-Release 2
    • None
    • Unconfirmed
    • (Unassigned)

      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.

            Unassigned Unassigned
            elyg Ely G
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: