summaryrefslogtreecommitdiff
path: root/src/annotate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/annotate.cc')
-rw-r--r--src/annotate.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/annotate.cc b/src/annotate.cc
index 2b118e76..25f0e582 100644
--- a/src/annotate.cc
+++ b/src/annotate.cc
@@ -56,6 +56,7 @@ bool annotation_t::operator<(const annotation_t& rhs) const
return true;
if (price->commodity().symbol() > rhs.price->commodity().symbol())
return false;
+
if (*price < *rhs.price) return true;
if (*price > *rhs.price) return false;
}
@@ -68,9 +69,12 @@ bool annotation_t::operator<(const annotation_t& rhs) const
if (*tag > *rhs.tag) return false;
}
if (value_expr) {
+ DEBUG("annotate.less", "Comparing (" << value_expr->text()
+ << ") < (" << rhs.value_expr->text());
if (value_expr->text() < rhs.value_expr->text()) return true;
- if (value_expr->text() > rhs.value_expr->text()) return false;
+ //if (value_expr->text() > rhs.value_expr->text()) return false;
}
+
return false;
}