Uah, thanks but it's 300 lines of sophisticated code to learn *scared* ;-) Yeah I know, my own macros are often yet longer, but the self-invented stuff is by nature always easier to understand
And have already an own javascript-solution for sorting, needing less code, although it needs hashing up the list into max 127-character puzzle pieces, but oh well.
Anyway, regarding policy-manager, that's interesting... What happens if you sort and then close the browser, is the list still sorted in prefs.js or messed up again? Could it be that perhaps pol-man is working with a separate list in RAM somehow, copying it at startup and storing its copy again when closing the browser? Like it seems to do with prefs.js or such... Meaning, if pol-man is disabled, then KM restarted, the list sorted by macro, pol-man re-enabled, KM closed and restarted, what does the list look like then? Just a vague thought...