I'm using the JS library Underscore and in particular using the _.each and _.sortby library calls. I'm wondering if there's any possible way to get the index of the value within the iterator delegate _.sortBy([1, 4, 2, 66, 444, 9], function(num){ /*It'd be great to have access to the index in here */ return Math.sin(num); });
![Is it possible to get the index you're sorting over in Underscore.js?](https://cdn-ak-scissors.b.st-hatena.com/image/square/98d6f053a97a87156775f60757c60865d0f2c47d/height=288;version=1;width=512/https%3A%2F%2Fcdn.sstatic.net%2FSites%2Fstackoverflow%2FImg%2Fapple-touch-icon%402.png%3Fv%3D73d79a89bded)