The bug
For a scoreboard objective displayed on the sidebar, the values of each score should be aligned to the ride side, but when a score with a greater order of magnitude is created then any scores of lesser magnitudes aren't displayed correctly. A score set afterward has the correct position. The issue is fixed upon reloading the world.
Steps to reproduce
Create a new scoreboard objective, and display it on the sidebar:
/scoreboard objectives add foo dummy
/scoreboard objectives setdisplay sidebar fooSet a new score to some value:
/scoreboard players set name1 foo 2Set another score to a greater value, such as 1000:
/scoreboard players set name2 foo 1000Finally, set a new score to a smaller value:
/scoreboard players set name3 foo 1
Resulting behavior
Only the new scores have their position adjusted as expected, while any older scores of lesser magnitude retain their original position. Below is footage from Bedrock edition that displays the issue.
Expected behavior
All scores' values should be aligned to the right, regardless of when the score was added. Below is footage from Java Edition that exhibits the expected behavior.
I attached some images for those who wish to see the bug at a glance, rather than loading up a video.