aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fit.c b/src/fit.c
index 9efee54..37a6aa9 100644
--- a/src/fit.c
+++ b/src/fit.c
@@ -49,6 +49,7 @@
#include "proton.h"
#include "hdf5.h"
#include "hdf5_utils.h"
+#include <gsl/gsl_sort.h>
/* Maximum number of fit parameters. Should be at least 4 + 3*MAX_VERTICES. */
#define MAX_PARS 100
@@ -5893,6 +5894,8 @@ size_t particle_combo_to_array(int particle_combo, int *id)
particle_combo /= 100;
}
+ gsl_sort_int(id,1,i);
+
return i;
}