pyspark.sql.Window.orderBy

static Window.orderBy(*cols: Union[ColumnOrName, List[ColumnOrName_]]) → WindowSpec

Creates a WindowSpec with the ordering defined.