]> git.donarmstrong.com Git - mothur.git/blobdiff - phylosummary.cpp
started work on sffinfo command. fixed bug across all paralellized commands if the...
[mothur.git] / phylosummary.cpp
index 84b0861e38cc450b50b481e7efdaaa76e0831e4e..004c131d6779de0ab5d47df75308ad8b835fde2f 100644 (file)
@@ -172,6 +172,9 @@ void PhyloSummary::print(ofstream& out){
                //print labels
                out << "taxlevel\t rankID\t taxon\t daughterlevels\t total\t";
                if (groupmap != NULL) {
+                       //so the labels match the counts below, since the map sorts them automatically...
+                       sort(groupmap->namesOfGroups.begin(), groupmap->namesOfGroups.end());
+                       
                        for (int i = 0; i < groupmap->namesOfGroups.size(); i++) {
                                out << groupmap->namesOfGroups[i] << '\t';
                        }