You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Shivaram Venkataraman (JIRA)" <ji...@apache.org> on 2015/10/08 18:54:26 UTC

[jira] [Resolved] (SPARK-10836) SparkR: Add sort function to dataframe

     [ https://issues.apache.org/jira/browse/SPARK-10836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shivaram Venkataraman resolved SPARK-10836.
-------------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.6.0

Issue resolved by pull request 8920
[https://github.com/apache/spark/pull/8920]

> SparkR: Add sort function to dataframe
> --------------------------------------
>
>                 Key: SPARK-10836
>                 URL: https://issues.apache.org/jira/browse/SPARK-10836
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SparkR
>            Reporter: Narine Kokhlikyan
>            Priority: Minor
>             Fix For: 1.6.0
>
>
> Hi everyone,
> the sort function can be used as an alternative to arrange(... ).
> As arguments it accepts x - dataframe, decreasing - TRUE/FALSE, a list of orderings for columns and the list of columns, represented as string names
> for example: 
>  sort(df, TRUE, "col1","col2","col3","col5") # for example, if we want to sort some of the columns in the same order
>  sort(df, decreasing=TRUE, "col1")
>  sort(df, decreasing=c(TRUE,FALSE), "col1","col2")
> Thanks,
> Narine



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org