sort file of recordst