files can be read with elements in mixed order