title: How to fix Contextual closure type '((String, JSON), (String, JSON)) -> Bool' expects 2 arguments, but 1 was used in closure body?
body: <p>I am converting my code from swift 3.2 to swift 4 and I am getting error for this code </p>
  
  <pre><code>self.arrData = json.sorted{ $0.0.1["chkincount"].doubleValue &gt; $0.1.1["chkincount"].doubleValue }.map { $0.1 }
  </code></pre>
  
  <blockquote>
    <p>Contextual closure type '((String, JSON), (String, JSON)) -> Bool' expects 2 arguments, but 1 was used in closure body</p>
  </blockquote>
  
  <p>How to fix this ?</p>