need to sort file which we'll use in join