[add] sort method for log viewer