2 Replies Latest reply on Apr 7, 2011 4:12 PM by siva999

    How to custom sort in columns always displaying null values at the end

    aogier.netangel+seamframework.gmail.com

      I'm using <rich:dataTable/> with some <rich:column/> columns.


      The data I want to display contains some null values on some properties.


      Basically, the sort feature of <rich:column/> is to display those null values on the top or bottom of the list, depending on the current sort direction value.


      I want to display those null values always on the bottom of the list... and I tried many ways... using a comparator for exemple. With a comparator, it's not possible because the method of my comparator doesn't know whether I'm sorting ascending or descending.


      Is any of you knows how to get the current sort direction of a column, in order to sort the null values always on bottom ?