Sorted categories list alphabetically and fixed text in the thread edit window (fixes #37)