Sort s3 logs