I suggest you ...

Sorting

Some data I'd like to sort but not have it be alphabetically.

For example: A, B, C, D
I'd like it to sort: D, A, C, B

With GravityForms we can enter the value for the label as a number. I'm thinking if we had an option to rename the label in GravityView - So 1=D, 2=A, 3=C, 4=B then we could accomplish this type of sorting.

8 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Anonymous shared this idea  ·   ·  Admin →

    2 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • Anonymous commented  · 

        If it helps anyone I achieved this with the following code:

        http://pastie.org/10697638#

        In my case I'm using a dropdown field. Based on what the user selects I have (5) options that I want to sort and used a switch to enter the either a,b,c,d,e into a "Sorting" field that is hidden in the form.

        The second part of the code updates the sorting field should the user update the entry.

        Once you display the DataTable with the "Sorting" field you'll need to use CSS to hide the column.

      • Roger commented  · 

        Sounds like sorting according to the result of a formula (to be defined by the user). Would be a nice feature. Could this be achieved by adding a calculated field in the original form and then sorting by that field?

        For maximum neatness, you would need to be able to sort the list by a field that was not actually shown in the list.

      Feedback and Knowledge Base