fix microrole scope bug (ORDER BY issue with PostgreSQL)