sturct Post { let content: String let createdAt: NSDate } var posts: [Post] = [] // getMorePosts -> [Post] posts.extend(getMorePosts()) posts.sort { $0.createdAt.timeIntervalSinceNow > $1.createdAt.timeIntervalSinceNow }