[2.0.76] Very minor thing, Example for order
Posted: Thu May 14, 2026 11:21 pm
Order's example looks weird. Normally, examples are given in valid lua code, or what could be reasonable to see while modding. Order doesn't usually get typed out like the example, so the example is mostly sensible, but stands out.
https://lua-api.factorio.com/2.0.76/types/Order.html
None of the strings have commas, and at the end there's an unmatched ] for some reason.
https://lua-api.factorio.com/2.0.76/types/Order.html
Code: Select all
-- The order of special characters can be identified by looking at a UTF-8 character list.
-- This is the order some common characters are sorted in:
"-"
"0"
"9"
"A"
"Z"
"["
"]"
"a"
"z"
-- The following order strings would be ordered thusly then:
"a"
"ab"
"azaaa" -- "b" is sorted before "z", so "ab" comes before "az", regardless of the letters following it
"b"
"b-zzz"
"b[aaa]" -- "[" is sorted after "-" in UTF-8
"bb" -- "b" is sorted after "[" in UTF-8
]