So I have a function `f[x : {{_, _} ...}] := f /@ x; f[a_,b_]=:a+b`. I can input `f[{1,2},{2,0},{3,4}]` and get `{3,2,7}`. However, I want the function to also sort out the answers so I get `{{2,2},{1,3},{3,7}}`, where the first value corresponds to the position of ordered pair in the input. I have no idea how to approach this. I attempted to use Sort but an error message pops up. Are there other commands that would achieve this? Thanks, I'm new to using Mathematica and any help would be appreciated!!