Mojira Archive
MC-268417

Entities are sorted with Bogosort when using [sort=nearest] and [sort=furthest]

I appreciate that you can sort entities by distance but why does Minecraft use the Bogosort algorithm? This algorithm is very inefficient unless you are lucky. To reproduce just run a command with [sort=nearest] or [sort=furthest]. The time how long it takes to sort will be random.

Invalid

No User

oowooglac

2024-02-08, 08:05 PM

2024-04-09, 12:04 PM

2024-02-11, 07:35 PM

1

1

Unconfirmed

(Unassigned)

1.20.4, 24w06a

-