I have declared the following variable:
var Results = [String : Int]()
Now i want to order this Array from small to Big, based on the Integer values.
I have tried this, but it is only working for the String values:
func getSmallestResult(fingerprintingResult:[String:Int]) {
var closestObservationPoint:String = String()
var myArr = Array(fingerprintingResult.keys)
var sortedKeys: () = sort(&myArr) {
var obj1 = fingerprintingResult[$0] // get ob associated w/ key 1
var obj2 = fingerprintingResult[$1] // get ob associated w/ key 2
return obj1 < obj2
}