From 570f0e1207972291b36eb6dfab00f688c3a61c78 Mon Sep 17 00:00:00 2001 From: Gabriel Studer <gabriel.studer@unibas.ch> Date: Tue, 10 Jan 2023 15:28:41 +0100 Subject: [PATCH] bugfix --- modelling/src/afdb.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/modelling/src/afdb.cc b/modelling/src/afdb.cc index 210146ac..1548de16 100644 --- a/modelling/src/afdb.cc +++ b/modelling/src/afdb.cc @@ -118,6 +118,7 @@ void SeqToPentamerIndices(const String& seq, bool unique, std::vector<int>& indi } indices.resize(N-4); if(unique) { + std::sort(indices.begin(), indices.end()); auto last = std::unique(indices.begin(), indices.end()); indices.erase(last, indices.end()); } -- GitLab