added sort to myreport responses (for Postgres database)

Signed-off-by: Joseph Rézeau <moodle@rezeau.org>