Take the 2-minute tour ×
User Experience Stack Exchange is a question and answer site for user experience researchers and experts. It's 100% free, no registration required.

Lets say we have a sortable table like this:

mockup

download bmml source – Wireframes created with Balsamiq Mockups

It seems obvious that if I click on "Employee", that the table should reorder itself, probably putting the checked at the top and unchecked at the bottom.

But what if the table looks like this:

mockup

download bmml source

What should happen if the user clicks "Employee"? A few possibilities:

  1. Do nothing
  2. Reverse the current order
  3. Order according to some "primary sort key" (in this example there is none -- or maybe it's the name?).

Also, don't focus on the fact that it's a column of checkboxes either, the same approach should apply if it was a column of numbers that were all "42" or a column of text that was all "Plumbing".

share|improve this question
add comment

3 Answers

up vote 4 down vote accepted

What should happen is that the sort mark is switched over to the Employee column and that it the row should be sorted according to ascending order of that column. Regardless of what the column currently holds.

This may or may not change the order of the rows depending on the "natural" order of the underlying information. The current sort order of the information should only be retained if that is what you would also try to achieve when sorting on a different column that does not have all identical values. For example when you sort people with the same age in alphabetical order of their names when the user clicks on the Age column.

Some underlying "primary key" or rather inherent natural order like people's names can always be added. But if you do that, you should add it to all other sorting orders (like age), so it will be the order for rows with identical values in the column that the user selected to sort on.

Most certainly the current order should not be reversed. That should only happen when you click on the column that already shows the sort mark.

share|improve this answer
    
Just a simple concise answer. Bravo. –  tajmo May 17 '12 at 18:21
add comment

This is dependant on how you implement sorting. In general, the previous sorting method is ignored when you click a new column. In the back end, only the most recent column is sorted.

Example: Click Age, then Name, then Employee
Result: ORDER BY Employee

However, there is a fancier way to implement sorting. This is where you retain the previous choices. Every sort request is added to the 'stack' of sorts. The most recent column has priority, but the other sorts are still being done as well, in order.

Example: Click Age, then Name, then Employee
Result: ORDER BY Employee, Name, Age

Clicking a column you have sorted on previously moves it to the top of the stack if it's already on the list. This requires some additional development effort, especially if you are depending on a tool to manage the sorting for you, but it does make issues like this more user friendly, because without this multi-column sorting, clicking the Employee column will result in random ordering (or ordering by primary key, which is probably random to the user); with multi-column sorting, the behavior is more consistent with user expectation.

share|improve this answer
add comment

Do nothing. There is really no value to the user sorting on that column if the data is the same. If that is a common occurence for a given column, you may need to consider a different way of showing that data (a table may not be the best way to show that data).

For example, categorize the different rows, similar to this IBM documentation (Sorry, I can't post images yet, due to my reputation)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.