Number sorting with Indexes
<p>I want sorting Numbers ascending order including their indexes,here i've implemented sorting like this.</p>

<pre><code>PriceArray =      [
      " 93",
      " 112.8",
      " 138.45",
      " 127.25",
      " 117.25",
      " 114.45"
    ]
</code></pre>

<p>by using this,</p>

<pre><code>NSArray *myArray = [priceArray sortedArrayUsingDescriptors:
                            @[[NSSortDescriptor sortDescriptorWithKey:@"doubleValue"
                                                            ascending:YES]]];
</code></pre>

<p>After sorting this data came like</p>

<pre><code>[
  " 93",
  " 112.8",
  " 114.45",
  " 117.25",
  " 127.25",
  "138.45"
]
</code></pre>

<p>But i want sorting data including indexes like</p>

<pre><code>[
  [
    " 93",
    "0"
  ],
  [
    " 112.8",
    "1"
  ],
  [
    " 114.45",
    "5"
  ],
  [
    " 117.25",
    "4"
  ],
  [
    " 127.25",
    "3"
  ],
  [
    " 138.45",
    "2"
  ]
]
</code></pre>

<p>Can you please suggest me how can i implement this ? Thank you..</p>