         }
     }
     
+    // UITableView handling
     override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
         let app: Application = applications[indexPath.row]
         var cell = tableView.dequeueReusableCellWithIdentifier("ApplicationCell") as ApplicationTableViewCell

        viewController.dismissViewControllerAnimated(true, completion: nil)
    }
    
    @IBAction func order(sender: AnyObject) {
        let sheet = UIActionSheet(title: "Sorting options", delegate: self, cancelButtonTitle: "Cancel", destructiveButtonTitle: nil, otherButtonTitles: "hot", "new")
        sheet.showInView(UIApplication.sharedApplication().keyWindow)

        var nib = UINib(nibName: "ApplicationTableViewCell", bundle: nil)
        tableView.registerNib(nib, forCellReuseIdentifier: "ApplicationCell")
        
        // Hiding separator
        tableView.separatorColor = UIColor(white: 1, alpha: 0)
        
        // Fetching the application online
        Application.fetchApplications("hot", {(applications: Array<Application>) -> Void in
