GitHub user NarineK opened a pull request:

    https://github.com/apache/spark/pull/8920

    [SPARK-10836] [SparkR] Added sort(x, decreasing, col, ... ) method to 
DataFrame

    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")

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/NarineK/spark sparkrsort

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/8920.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #8920
    
----
commit 9d7e28e1a5c054b402e8d97f35b823b339949b39
Author: Narine Kokhlikyan <[email protected]>
Date:   2015-09-25T23:36:12Z

    Added sort(x, decreasing, col, ... ) method to DataFrame

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to