cleaned up wiwosmlog and inserted sorting