Sorting logs by filename