function b=orderby(Q)
% orderby - sort vector and return permuted index order rather than sorted values
%
% orderby :: [[N]] -> [[N]->[N]].

[a,b]=sort(Q);
