Works for me. What version of Julia are you using? Note that if you have
the integer before the string in each tuple, you can just sort the array.


On Sun, Jun 15, 2014 at 8:22 AM, TR NS <[email protected]> wrote:

> I am having trouble sorting an array of tuples. Each tuple has 2 elements
> consisting of a string and a integer, and I need to sort them by the
> integer. I tried:
>
>      sort(stats, by=x->x[2])
>
> But that doesn't seem to work.
>
>
>

Reply via email to