• Resolved leonardkaufer

    (@leonardkaufer)


    Tobias, Thank you so much for your great TablePress and Extensions. I hope everyone makes a Donation to keep these tools alive!

    SUMMARY: I want to do a pre-sort using Table Row Order on a column that contains links.

    DETAILS:
    I have a lengthy table which I am able to maintain both through TablePress or Excel. My first column has a Song Title, but it is also a link to the corresponding PDF. When adding new entries to the table, it would be much easier to simply add them to the end of the table rather than inserted in their alphabetical order.

    You provide the Table Row Order extensions to do just that. However, since my first column has links, it appears that the pre-sort is being done on the raw ASCII of the link itself, and not on the link text. Once the data is displayed, the live sort works perfectly upon the displayed data.

    Apologies if this question has been posted, but I did not find it when I searched.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Indeed, the Table Row Order Extension can only sort for text (or ASCII as you said). For sorting links, a different sort algorithm would be necessary.

    Such an algorithm does however exist for the JavaScript sorting that TablePress also offers, so I recommend to use that here. For that, just add

    "order": [[ 0, "asc" ]]
    

    to the “Custom Commands” text field on the “Edit” screen of the table.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘Table Row Order’ is closed to new replies.