DataFrame.OrderBy Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
OrderBy(Column[]) |
Returns a new Dataset sorted by the given expressions. |
OrderBy(String, String[]) |
Returns a new Dataset sorted by the given expressions. |
OrderBy(Column[])
Returns a new Dataset sorted by the given expressions.
public Microsoft.Spark.Sql.DataFrame OrderBy (params Microsoft.Spark.Sql.Column[] columns);
member this.OrderBy : Microsoft.Spark.Sql.Column[] -> Microsoft.Spark.Sql.DataFrame
Public Function OrderBy (ParamArray columns As Column()) As DataFrame
Parameters
- columns
- Column[]
Column expressions to sort by
Returns
DataFrame object
Remarks
This is an alias of the Sort() function.
Applies to
OrderBy(String, String[])
Returns a new Dataset sorted by the given expressions.
public Microsoft.Spark.Sql.DataFrame OrderBy (string column, params string[] columns);
member this.OrderBy : string * string[] -> Microsoft.Spark.Sql.DataFrame
Public Function OrderBy (column As String, ParamArray columns As String()) As DataFrame
Parameters
- column
- String
Column name to sort by
- columns
- String[]
Additional column names to sort by
Returns
Remarks
This is an alias of the Sort() function.