Sort index by clicking column heading

  • Unknown's avatar

    I have a page that is an alphabetized index of cycling routes, four columns wide: name, category, distance, elevation gain. I’d like to be able to allow user sorting by any of the four columns just by clicking the column heading. This is a pretty standard feature of most data that is tabulated, but I’m not finding an easy path to the solution. Can you help me, please?
    Blog url: http://coloradobikemaps.wordpress.com/

  • Unknown's avatar

    I’m sorry but I don’t know any way to achieve that on a WordPress.com blog. Perhaps Staff or another Volunteer have a workaround or another means of you accomplishing this “column sorting”.

  • Unknown's avatar

    @coloradobikemaps Such feature is very-very rarely seen in online/web software.

  • Unknown's avatar

    @coloradobikemaps I haven’t much experience using Google docs, but I know that you can import Excel spreadsheets into Google docs, and Google docs can be embedded in a wordpress.com post using shortcode. Perhaps using a Google spreadsheet in your site might work? I don’t know how smooth the integration would be, but it might be worth looking at: http://en.support.wordpress.com/google-docs/

  • Unknown's avatar

    The it sucks workaround would be to have a master Page for the sort and the Master Page has four sub pages under it with each sub Page sorted by one of the columns that is hand sorted – sort of an index – I see that you have about 20 Posts so setting this up would not be a great deal of fun but not too bad – once set up each new Post would be needed to be added to the correct sort position, you might want to set up a table that would display all four columns of data, then it is a matter of adding the html code in the correct pace.

    I use a variation of this on my site. I have two Pages that have a listing of my site, one is listed by Alpha and the other by subject with the individual Posts under the subject in chronological order.

  • Unknown's avatar

    The whole “sort” thing would require some sort of scripting such as PHP or javascript, and we cannot use those here at wordpress.COM for security reasons.

  • Unknown's avatar

    Thanks for a the good ideas and possible workarounds. I know there are issues with scripting in WordPress.com but since there’s an identical feature and sort function embedded within the wordpress dashboard (click all posts for example and then you can sort them by title, or any of the other column headings of your blog) I thought it might be possible for mere mortals to use.

  • Unknown's avatar

    The problem is, your data would have to have a separate table in the main database at wordpress.COM since the sortable headers in the dashboard sort stuff that is in the main database at .COM. There is no way they would allow you to create your own tables and insert data into their databases.

  • The topic ‘Sort index by clicking column heading’ is closed to new replies.