FieldComparator ignores sort direction for null values

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • 5.0.10
    • Affects Version/s: 5.0.10, Freshly
    • Component/s: Components
    • None

      If you look into the method FieldComparator.compare0(), it is clear, that the ascending/descending flag is only considered if both comparator values are not null.
      This means, null values are always on top of a sorted list (by default null is considered as smallest), no matter of the sort direction of the column.

      If needed, I can also prepare an example, although I think it is pretty obvious from looking at the code.

            Assignee:
            SimonPai
            Reporter:
            Matze2
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: