aboutsummaryrefslogtreecommitdiff
path: root/libraries/detectorBuilding/src/detectorBuilding.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/detectorBuilding/src/detectorBuilding.cpp')
-rw-r--r--libraries/detectorBuilding/src/detectorBuilding.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/detectorBuilding/src/detectorBuilding.cpp b/libraries/detectorBuilding/src/detectorBuilding.cpp
index c9367e1..0c31c28 100644
--- a/libraries/detectorBuilding/src/detectorBuilding.cpp
+++ b/libraries/detectorBuilding/src/detectorBuilding.cpp
@@ -34,7 +34,7 @@ void sort(ld a[], int n) {
// Too lazy to implement a fast sort
for (int i = 0; i < n; i++) {
for (int j = 0; j < n - 1; j++) {
- if (a[j] > a[j + 1]) {
+ if (a[j] < a[j + 1]) {
ld tmp = a[j];
a[j] = a[j + 1];
a[j + 1] = tmp;