Fixed logfile saving and added alphabetical sorting in changetags.js