You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Ryan Ernst (JIRA)" <ji...@apache.org> on 2014/10/07 02:03:12 UTC

[jira] [Resolved] (LUCENE-5994) Rename "reverse" sort parameter to "descending"

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

Ryan Ernst resolved LUCENE-5994.
--------------------------------
    Resolution: Not a Problem

> Rename "reverse" sort parameter to "descending"
> -----------------------------------------------
>
>                 Key: LUCENE-5994
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5994
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Ryan Ernst
>         Attachments: LUCENE-5994.patch
>
>
> This always causes me confusion every time I look at sorting.  What exactly is "natural" order? I can think about it to figure it out (1, 2, 3... is natural), but since the parameter/variable is called "reversed" it always requires looking back at the docs (which then state that the flag is reversing the natural order).
> I think it would be much clearer to use the ascending/descending terminology. Although I think {{ascending}} is better, so that the default would be true, it probably is better to keep the semantics of the boolean the same, thus naming it {{descending}}.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org