diff --git a/internal/web/public/js/hist-html.js b/internal/web/public/js/hist-html.js
index 2bd97d2..c05b547 100644
--- a/internal/web/public/js/hist-html.js
+++ b/internal/web/public/js/hist-html.js
@@ -1,6 +1,8 @@
function getHistHTML(hist) {
+ hist = sortHistByDate(hist);
+
let html = '', col, title;
for (let h of hist) {
@@ -17,4 +19,11 @@ function getHistHTML(hist) {
`;
}
return html;
+}
+
+function sortHistByDate(hist) {
+
+ hist.sort((a, b) => (a.Date > b.Date));
+
+ return hist;
}
\ No newline at end of file