Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-610

FieldComparator ignores sort direction for null values

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 5.0.10
    • 5.0.10, Freshly
    • Components

      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.

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

              Created:
              Updated:
              Resolved: