Why doesn't the table sort?

This question is in reference to Atlassian Documentation: Tables

The online help says that you should be able to sort tables in view mode using the table headers. This isn't working on most of the tables in our space. Any ideas what's wrong?

4 answers

1 accepted

Just for funsies, click-drag select the data in a non-sorting table (or at least a few rows), then create a 1x1 cell table and paste.

I have found that sometimes imported tables don't function right, and this quick table recreation does the trick.

Yep, it worked. Thanks for the tip.

This didn't work for me. I've got some tables that used to sort, but no longer do so. Not sure if this is due to some change in Confluence, or some accidental side-effect of editing.

Removing the formatting and then recreating the first row as a table header did not help.

This behaviour turns out to be a browser issue. On a Mac (macOS 10.13.2) in Safari (with JavaScript enabled) I don't see the sortable table header, but in Opera I do.

First things first, when you hover over a column head, do two little triangles appear?

There are a lot of ideas. But without any further information it is pure guessing.

Can you post some code or screenshots?

No, on the tables that don't sort, the two little triangles do not appear.

I usually work in the WYSIWYG editor, so the request for some code gave me an idea that perhaps the header row wasn't properly set on the table that doesn't sort. It wasn't, so I inserted a new row, made it the header, and deleted the old quasi-header row. It still doesn't sort, but the code looks the same to me as the code for the table that does have the little triangles and sorts. Here's the code for the beginning of the table that doesn't sort, including the header row:

<table>
  <tbody>
    <tr>
      <th colspan="1">Writer</th>
      <th colspan="1">Scrum Teams</th>
      <th colspan="1">Subject Areas Covered</th>
      <th colspan="1">PDFs</th>
    </tr>

This table does have some empty cells in the first column. Could that be the problem?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

1,891 views 25 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you