Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sort on last name, first name, or both?

I have a dilemma that I've encountered before. What's the best in terms of usability when one displays personal names in a table? Should there be a single column for the name? If so, is "firstname lastname" or "lastname, firstname" preferable? Or would a column for "firstname" and a column for "lastname" be best? I'm thinking in terms of the user's desire to sort the columns. I like having a column for each name component because I can imagine that in some cases the first name will be more important to the user whereas in other cases the last name would be more important.

I would assume that many out there have had this dilemma and am looking for pearls of wisdom based on past experience.

like image 953
Great Kindness Avatar asked Mar 01 '10 22:03

Great Kindness


People also ask

Should I sort by first name or last name?

You should give your users the option of sorting by either one. Some cultures and people use first names more, and so that is usually the name that they know when looking someone up. Others use last name more, and so they should be able to sort by that.

How do I sort by last name and first name in Excel?

In the 'Sort by' option, select the name of the column that just has the last name. In the 'Sort On', select 'Cell Values' In the Order option, select 'A to Z' Click OK.

How do you sort Data by group then by last name by first name?

In the pop-up Advanced Sort dialog, select the column you want to sort, choose Last name from Sort On drop down list, specified the sort order from the Order drop down list, and click the Ok button. See screenshot: So far the full name column has been sorted by last name at once.

How should I arrange my names?

However, if you write your surname first, always put comma so that readers can identify it as such. For example, if you write *John, James* a reader will know that John is your surname and James is your first name. Another acceptable practice is — you write your surname in caps and keep the first name in lower keys.


5 Answers

Definitely have a column for each part. That gives you much more flexibility. So you could sort by surname, but print "firstname surname", for example.

like image 76
Skilldrick Avatar answered Oct 06 '22 07:10

Skilldrick


If you don't have the screen real estate to have a column for each part, you can combine them into a single string whose format represents the sorting order. Each click on the column header cycles to the next sort order. For example:

Default: sort by last, first (ASC)

Bimbleman, Wally P.
Zonkenstein, Arnold Q.

1st click: sort by last, first (DESC)

Zonkenstein, Arnold Q.
Bimbleman, Wally P.

2nd click: sort by first, middle, last (ASC)

Arnold Q. Zonkenstein
Wally P. Bimbleman

3rd click: sort by first, middle, last (DESC)

Wally P. Bimbleman
Arnold Q. Zonkenstein

etc...

Easier to read an entire name this way (vs. having it span across columns), takes up less screen real estate, and frees you from having to decide upon a single format & sort.

like image 36
Scott Smith Avatar answered Oct 06 '22 06:10

Scott Smith


As far as I know, each country has Its own rules to Sort the names, some countries have the uses of do it By First name, and some by Last Name, I believe that the right answer here is, what is about your app? how many users will appear on those columns? And which users (age/nationality/context) are going to use your app?

like image 45
David Santamaria Avatar answered Oct 06 '22 07:10

David Santamaria


Really, I agree with Skilldrick - a good UI has at least separate columns for first and last names...

But don't forget that CONSISTENCY in a UI is actually more important and makes things usable: giving the end user an implied expectation of how things are done.

like image 34
Jeff Meatball Yang Avatar answered Oct 06 '22 07:10

Jeff Meatball Yang


You might consider calling the fields "Given Name" and "Family Name" to account for people who put their family name first. Of course this doesn't cover everyone (some people only have a given name) but it might reduce potential confusion with Chinese and Japanese names, for example.

like image 37
Bennett McElwee Avatar answered Oct 06 '22 07:10

Bennett McElwee