DisplayTag
  1. DisplayTag
  2. DISPL-255

Sorting of strings and negative numbers does not work

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 1.0
    • Fix Version/s: 1.1
    • Component/s: Paging/Sorting
    • Labels:
      None
    • Application server:
      Jboss 3.2.7 with builtin tomcat

      Description

      If you look at the attached screendumps you will see the problem. The sorting does not seem to work at all on strings that contain spaces and negative numbers.
      1. CondicoSorter.java
        5 kB
        Bard A. Evjen
      2. RowSorter.java
        7 kB
        Bard A. Evjen
      1. bug1.gif
        4 kB
      2. bug2.gif
        4 kB

        Activity

        Hide
        Bard A. Evjen added a comment -
        I've fixed the sorting so it works with numbers, strings that contain numbers, strings with links that contains numbers. The CondicoSorter.java is the file that does the actual sorter and the RowSorter.java is modified to use the CondicoSorter.java.
        Show
        Bard A. Evjen added a comment - I've fixed the sorting so it works with numbers, strings that contain numbers, strings with links that contains numbers. The CondicoSorter.java is the file that does the actual sorter and the RowSorter.java is modified to use the CondicoSorter.java.
        Hide
        fabrizio giustina added a comment -
        You can now achieve the same result by using a custom comparator, see DISPL-18
        Show
        fabrizio giustina added a comment - You can now achieve the same result by using a custom comparator, see DISPL-18

          People

          • Reporter:
            Anonymous
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: