Skip to content

TagSpaces is an offline, open source, document manager with tagging support

Correcting the sort order of the dates

uggrockd08463fe6272
diff --git a/data/ext/perspectiveHealth/myweight.js b/data/ext/perspectiveHealth/myweight.js
index 4eada3c4d..3e025db88 100644
--- a/data/ext/perspectiveHealth/myweight.js
+++ b/data/ext/perspectiveHealth/myweight.js
@@ -92,7 +92,7 @@ define(function(require, exports, module) {
});
// Sorting by date
- data.sort(function(a, b) { return b.Date - a.Date; });
+ data.sort(function(a, b) { return a.Date - b.Date; });
x.domain(data.map(function(d) { return d.Date; }));
y.domain([0, d3.max(data, function(d) { return d.total; })]);