             return cell
             
         case sortCellKey:
-//            let cell = tableView.dequeueReusableCellWithIdentifier(cellTypes["sort"]!, forIndexPath: indexPath) as! SegmentedCell
-//            
-//            cell.segmentedValueLabel.text = sortCategories[indexPath.row]
-//            
-//            cell.delegate = self
-//            return cell
             
             let cell = tableView.dequeueReusableCellWithIdentifier(cellTypes["radius"]!, forIndexPath: indexPath) as! RadiusCell
             

    
    // radiusCelllDelegate
    func radiusCell(radiusCell: RadiusCell, valueUpdated: Bool) {
        println("radius cell!")
        matchType = tableView.indexPathForCell(radiusCell)!.row
    }
    

//            cell.onSwitch.hidden = true
            cell.onSwitch.on = switchStates[indexPath] ?? false
            
            //Almost implemented!
            if cell.onSwitch!.on {
//                cell.accessoryView = UIImageView(image: UIImage(named: "SortSelected"))
                cell.accessoryType = .Checkmark
