I am beginner in Erlang programming. I want to sort according to the second element of each tuple. I already use usort/1 and it works fine but it only works with the first element.
So I think we need to swap each elements and after we do sort operation and after swap it back.
Can you tell me any other easiest solution to sort tuple lists.
Last updated:3/14/2016 3:05:14 AM