The tech tree export is in CSV format. It is meant to be imported into a spreadsheet program, such as Microsoft Excel. There is nothing wrong with the spacing, and once you make a spreadsheet, sorting is easy.
Strangely enough, exporting component data creates files with spaces forming columns, meant to be viewed as an actual text file...