Merge pull request #622 from afs/jena-1774_distinct-orderby

JENA-1774: Reorder SELECT DISTINCT * ORDER BY