In Spark dataframes,
sort() is alias for orderBy()
But in Spark SQL
sort By sorts data at each partition level and order By sorts data at the entire level
sortby: https://spark.apache.org/docs/latest/sql-ref-syntax-qry-select-sortby.html
orderby: https://spark.apache.org/docs/latest/sql-ref-syntax-qry-select-orderby.html