client - sorted output from query