Legacy reports (not Sun/Oracle Report Builder ones) don't sort by the grouping columns. Commit message is explanatory; shout if you have other question. Please apply to libreoffice-3-5 branch. -- Lionel