Better way of sorting filenames for reconstitution