X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=mothur.h;h=cd14056b21ba82f9d6c07e650fcf210616e7a882;hb=01f8d2c7d982a6209211f5abbcf2a086fdf60d0a;hp=25b803fa393e27d0c2811e62efdeb042ce390dec;hpb=6ede3bf5c0a9eedb23f24577a97da81ab3e1f7df;p=mothur.git diff --git a/mothur.h b/mothur.h index 25b803f..cd14056 100644 --- a/mothur.h +++ b/mothur.h @@ -177,7 +177,13 @@ inline bool compareSpearman(spearmanRank left, spearmanRank right){ //******************************************************************************************************************** //sorts highest to lowest inline bool compareSeqPriorityNodes(seqPriorityNode left, seqPriorityNode right){ - return (left.numIdentical > right.numIdentical); + if (left.numIdentical > right.numIdentical) { + return true; + }else if (left.numIdentical == right.numIdentical) { + if (left.seq > right.seq) { return true; } + else { return false; } + } + return false; } //******************************************************************************************************************** //sorts lowest to highest