@@ -27,16 +27,6 @@ function Hallway (sites) {
2727
2828 // Entries
2929
30− function compare (a, b) {
31− if (a.date < b.date) {
32− return -1
33− }
34− if (a.date > b.date) {
35− return 1
36− }
37− return 0
38− }
39−
4030 this.sortEntries = function () {
4131 const a = []
4232 for (const id in feeds) {
@@ -46,7 +36,7 @@ function Hallway (sites) {
4636 a.push(entry)
4737 }
4838 }
49− return a.sort(compare)
39+ return a.sort(compare).reverse()
5040 }
5141
5242 this.templateEntry = function (entry) {
@@ -98,6 +88,10 @@ function Hallway (sites) {
9888
9989 // Utils
10090
91+ function compare (a, b) {
92+ return a.date < b.date ? -1 : a.date > b.date ? 1 : 0
93+ }
94+
10195 function parseFeed (author, feed) {
10296 const lines = feed.split('\n')
10397 const entries = []
@@ -138,6 +132,7 @@ function Hallway (sites) {
138132 } else if (isYesterday) {
139133 return 'yesterday'
140134 }
135+
141136 return `${Math.floor(minutes / 1440)} days ago`
142137 }
143138}