groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GROOVY-8218) Allow to specify reverse order for @Sortable
Date Sun, 04 Jun 2017 06:42:04 GMT

    [ https://issues.apache.org/jira/browse/GROOVY-8218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16036191#comment-16036191
] 

ASF GitHub Bot commented on GROOVY-8218:
----------------------------------------

GitHub user Leward opened a pull request:

    https://github.com/apache/groovy/pull/558

    GROOVY-8218 @Sortable allows reversed natural ordering

    See [GROOVY-8218](https://issues.apache.org/jira/browse/GROOVY-8218)

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

    $ git pull https://github.com/Leward/groovy master

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

    https://github.com/apache/groovy/pull/558.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 #558
    
----
commit 4f4cdbeeb40ed40c6020f1ddfadca3769ee10b67
Author: Paul-Julien Vauthier <pj82491@gmail.com>
Date:   2017-06-04T06:31:48Z

    GROOVY-8218 @Sortable allows reversed natural ordering

----


> Allow to specify reverse order for @Sortable
> --------------------------------------------
>
>                 Key: GROOVY-8218
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8218
>             Project: Groovy
>          Issue Type: Improvement
>            Reporter: Paul-Julien Vauthier
>
> When using the Sortable annotation it is not possible to use reverse order. 
> For a leaderboard, you may want to sort its entries by points. 
> {code}
> @Sortable(reversed = true)
> class LeaderBoardEntry {
>   int points
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message