aboutsummaryrefslogtreecommitdiff
path: root/foray
diff options
context:
space:
mode:
Diffstat (limited to 'foray')
-rw-r--r--foray/ForayTableViewController.swift1
1 files changed, 1 insertions, 0 deletions
diff --git a/foray/ForayTableViewController.swift b/foray/ForayTableViewController.swift
index c984634..35d8052 100644
--- a/foray/ForayTableViewController.swift
+++ b/foray/ForayTableViewController.swift
@@ -80,6 +80,7 @@ class ForayTableViewController: UITableViewController {
func reloadApiData() {
loadApiData(onComplete: { (apiItems) in
self.items = apiItems
+ self.items.sort { (lhs, rhs) in lhs.releaseDate < rhs.releaseDate }
let groups = Dictionary(grouping: self.items) { (item) in
return firstDayOfYear(date: item.releaseDate)