add ORDER BY statements to SQL

close #65