add sorted CSV by generation ID