1 Reply Latest reply on Dec 10, 2009 9:29 AM by Ilya Shaikovsky

    ExtendedDataTable Multiple Column Sort Ordering

    Keith Kile Newbie

      Is there a way to reverse the sort priority of columns when using multiple column sorting with extendedDataTable.

      For example, the current behavior of the multiple column sorting capability is demonstrated below:

      
      Original Order:
      
      Column 1 | Column 2
      -------------------------
      ID_A | VAL_4
      ID_C | VAL_3
      ID_B | VAL_2
      ID_A | VAL_1
      
      
      Ordering After Sorting on Column 1
      
      
      Column 1 | Column 2
      -------------------------
      ID_A | VAL_4
      ID_A | VAL_1
      ID_C | VAL_3
      ID_B | VAL_2
      
      
      
      Ordering After Sorting on Column 2
      
      Column 1 | Column 2
      -------------------------
      ID_A | VAL_1
      ID_A | VAL_4
      ID_C | VAL_3
      ID_B | VAL_2
      
      




      Is it possible to reverse the priority of the columns so that the last column clicked has the highest priority during the sort process rather than the lowest priority as it is implemented in the live demo?

      
      Original Order:
      
      Column 1 | Column 2
      -------------------------
      ID_A | VAL_4
      ID_C | VAL_3
      ID_B | VAL_2
      ID_A | VAL_1
      
      
      Ordering After Sorting on Column 1
      
      
      Column 1 | Column 2
      -------------------------
      ID_A | VAL_4
      ID_A | VAL_1
      ID_C | VAL_3
      ID_B | VAL_2
      
      
      
      Ordering After Sorting on Column 2
      
      Column 1 | Column 2
      -------------------------
      ID_A | VAL_1
      ID_B | VAL_2
      ID_C | VAL_3
      ID_A | VAL_4
      
      



      After some testing, I found that this sorting priority strategy seems to be implemented in other frameworks like Ext JS and better meets my customer's expectations.

      Keith