Implemented SELECT DISTINCT ... ORDER BY ...