Reverse the order of SplatNet gear for Twitter posts

This should make the display order a little more clear (going from newest to oldest left to right, top to bottom).
This commit is contained in:
Matt Isenhower
2017-09-28 10:43:17 -07:00
parent aa88ea100e
commit 087e7dca36

View File

@@ -51,8 +51,11 @@ export default {
return this.merchandises.find(m => m.end_time == this.$route.params.endTime);
},
otherMerchandises() {
if (this.merchandises)
return this.merchandises.filter(m => m != this.featuredMerchandise && m.end_time > this.$route.params.startTime);
if (this.merchandises) {
return this.merchandises
.filter(m => m != this.featuredMerchandise && m.end_time > this.$route.params.startTime)
.sort((a, b) => b.end_time - a.end_time);
}
},
},
created() {