 							//	let articleID: Int
 							//	let sourceID: Int
 							//	let highlight: Bool
+							section: "0"
 						)
 					}
 					println("entries: \(entries.count)")
 					
+					for item in entries {
+						item.section = self.getTimeSince(item.publishedDateJS)
+					}
+					
 					dispatch_async(dispatch_get_main_queue()) {
 						self.newsEntries.addObjectsFromArray(entries)
+						//println("newsEntries=\(self.newsEntries.count)")
+						
+						// Put each item in a section
+						for item in self.newsEntries {
+							// If we don't have section for particular time, create new one,
+							// Otherwise just add item to existing section
+							var foo = item as! NewsEntry
+							//println("section=\(foo.section), title=\(foo.title)")
+							if self.sections.indexForKey(item.section) == nil {
+								self.sections[item.section] = [item as! NewsEntry]
+							}
+							else {
+								self.sections[item.section]!.append(item as! NewsEntry)
+							}
+
+							// Storing sections in dictionary, so we need to sort it
+							self.sortedSections = self.sections.keys.array.sorted(<)
+						}
+						//println("sections=\(self.sections.count)")
+						
 						self.tableView!.reloadData()
 						self.refreshControl?.endRefreshing()
 						return

		}
	}
	
	override func didReceiveMemoryWarning() {
		super.didReceiveMemoryWarning()
		// Dispose of any resources that can be recreated.

	var sectionID: Int
	//	let sourceID: Int
	//	let highlight: Bool
	var section: String
	
	init(title: String, link: String, author: String, publishedDateJS: String,
		shortDescription: String?, mobileLink: String?, sectionID: Int, section: String) {
		self.title = title
		self.link = link
		self.author = author
