[Feature]: Initiative sort order method improvements (case-insensitivity and strings with leading numbers)
Describe the Problem
Currently initiative default sorting method sorts by numbers, then case-sensitive strings, then nulls.
However if you have a string that starts with a number the resulting sorted initiative can look odd. Similarly if you have just strings and a mixture of upper and lower cases, the resulting sorting can look odd.
The Solution you'd like
If the initiative value is a string and starts with a number (integer or double), treat it as a number for initiative sorting purposes.
If the initiative value is a string and does not start with a number, make the sort case-insensitive.
This would improve the utility of the Initiative value held for each token.
Alternatives that you've considered.
Provide different sorting options that a GM could pick from the Initiative Panel
- Default = Current (Numbers, Case-sensitive Strings, Nulls)
- Numbers + Strings starting with Numbers as Numbers, String not starting with Numbers as Strings, Nulls
- Case-Insensitive strings
Additional Context
Example of a default sorted initiative with a confusing (well to me) order:
Didn't even know that initiative could be a string.