added a simple sorting method and a get method in the logentry