 		return results
 	}
 	
-	func formatFrequency(results: [(String, Double)]) -> String {
-		var parcialResult : String = ""
-		
-		
-		for (letra, frecuencia) in results.sorted(by: {$0.1 > $1.1})
-		{
-			parcialResult += "Símbolo: \(letra) | Frecuencia: \(frecuencia) \n"
-		}
-		return parcialResult
-	}
-	
-	func formatFrequency(results: [(String, Int)], taking maxNumberOfItems: Int) -> String {
+	func formatFrequency(results: [(String, Double)], taking maxNumberOfItems: Int) -> String {
 		var parcialResult : String = ""
 		
 		var numeroItemsProcesados = 0

		// Do any additional setup after loading the view.
		textToAnalyzeField.delegate = self
		tableViewKeyCollection = ["Indice Coincidencia", "Kasinsky", "Babage"]
		tableViewValueCollection = ["FakeIndex1234", "Kasinsky1234", "Babage1234"]
		keyValueTable.delegate = self
	}


		let numeroItems = Double(textToAnalyzeField.stringValue.characters.count)
		let symbols = textField.stringValue.lowercased().characters.map{String($0)}
		
		let rawResults = calculateNgramFrequency(of: symbols, withNgramLength: 1)
		let frequencyResults = rawResults.map{(simbolo, frecuencia) in return (simbolo, (frecuencia/numeroItems*100))}
		let formatedString = formatFrequency(results: frequencyResults, taking: frequencyResults.count)
		self.ResultsLabel.stringValue = formatedString
		
		let IC = calculateCoincidenceIndex(of: rawResults, with: symbols.count)
