If I have a list
p={{15/16,1/4},{3/4,13/64},{3/4,1/4},{3/16,1/64},{3/16,1/16},{0,1/64}}
I apply a function f[x_,y_]:=2 x-5 y;
on it by command 4^3 f@@@p
so i got
{40,31,16,19,4,-5}
I want to sort p by using f. I try this command SortBy[p,f]
but it gives
{{0,1/64},{3/16,1/64},{3/16,1/16},{3/4,13/64},{3/4,1/4},{15/16,1/4}}
, but i need actually
{{0,1/64},{3/16,1/16},{3/4,1/4},{3/16,1/64},{3/4,13/64},{15/16,1/4}}
Please help in this sorting case, thank you in advance.