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