blockStateSortKeys - SpyglassMC/Spyglass GitHub Wiki
🔧 Fixable: violations of this rule can be fixed by Code Actions.
Enforce the values in a block state to be sorted by the keys.
- ("alphabetically"): sorted alphabetically, case-insensitively.
{
    "blockStateSortKeys": null
}setblock ~ ~ ~ minecraft:stone_button[face=ceiling,powered=true]
setblock ~ ~ ~ minecraft:stone_button[powered=true,face=ceiling]{
    "blockStateSortKeys": ["warning", "alphabetically"]
}setblock ~ ~ ~ minecraft:stone_button[face=ceiling,powered=true]setblock ~ ~ ~ minecraft:stone_button[powered=true,face=ceiling]This rule was introduced in DHP 2.0.0.