i did tests with
(a) the vanilla install
(b) the l version, unicode
(c) the l version, ansi
and two snippets of text which are different only due to line breaks before and after the text;
text start immediately after/before the "<<<"/">>>" delimiters.
(a)(1) wrong sorting
(b)(1) wrong sorting
(c)(1) wrong sorting
(a)(2) wrong sorting
(b)(2) correct sorting
(c)(2) correct sorting
wrong sorting = first line wrongly stays on top, following lines are sorted correctly
editor used = notepad.
personally, I am fine with the script as it is, despite the minor inconvenience. perhaps it would be more efficient
to ask for help in the ahk forums, at this point, really, if you are curious what the problem is...
For the record, i am using a (German) Sony Vaio X.
(re)installing ahk l version / vanilla version seemed, and was in fact, very easy and unproblematic, so i didnt wait for the test machine.
ps. i might not find time to reply/do more tests these days. thx for understanding.