sort log file upon every entry