Skip to content
Snippets Groups Projects
Commit a8382d19 authored by Langella Olivier's avatar Langella Olivier
Browse files

sort proteins by group ID : this fix a sort problem in the protein list with protein ranks

parent 89e28cbf
No related branches found
No related tags found
No related merge requests found
......@@ -143,8 +143,8 @@ ProteinSheet::writeIdentificationGroup(IdentificationGroup *p_ident)
std::sort(protein_match_list.begin(), protein_match_list.end(),
[](const ProteinMatch *a, const ProteinMatch *b) {
return a->getGrpProteinSp().get()->getSubGroupNumber() <
b->getGrpProteinSp().get()->getSubGroupNumber();
return a->getGrpProteinSp().get()->getGroupingId() <
b->getGrpProteinSp().get()->getGroupingId();
});
for(auto &protein_match : protein_match_list)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment