Page 1 of 1

[2.0.76] Very minor thing, Example for order

Posted: Thu May 14, 2026 11:21 pm
by Honktown
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

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
]

None of the strings have commas, and at the end there's an unmatched ] for some reason.

Re: [2.0.76] Very minor thing, Example for order

Posted: Mon May 18, 2026 2:45 pm
by Bilka
Thanks for pointing this out, I moved the information out of the example into to the text for the next doc version.