Results 1 to 4 of 4

Thread: sort contacts listview by first_name

  1. #1
    tobyrhodes is offline Sugar Community Member
    Join Date
    Feb 2007
    Posts
    13

    Default sort contacts listview by first_name

    Hi all.

    I have a new install of Sugar Community Edition v5.5.0 (build 6653).

    Does anyone know how to change the contacts listview name sorting (i.e. when you click on the column heading) to be on first_name rather than last_name?

    I managed to fix this in an older version of Sugar a few years ago, but can't remember how I did it.

    Many thanks in advance
    Toby

  2. #2
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: sort contacts listview by first_name

    Hello,

    If you already have listviewdefs.php in custom/modules/Contacts/metadata
    Just change

    PHP Code:
    'orderBy' => 'last_name'
    to

    PHP Code:
    'orderBy' => 'first_name'
    for name field and do quick repair and rebuild.
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

  3. #3
    tobyrhodes is offline Sugar Community Member
    Join Date
    Feb 2007
    Posts
    13

    Default Re: sort contacts listview by first_name

    Many thanks for taking the time to reply.
    I tried that, and did a repair & build, but it didn't seem to fix things.
    However, I have solved my problem in another way ... I have replaced the "Name" field in the list view with first_name and last_name, then sorted on first_name.

    cheers
    Toby

  4. #4
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: sort contacts listview by first_name

    Hello,

    You broke the full_name feature of sugar, that is also possible but my suggestion should also work. It worked for me!
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Sort by for listview
    By monicaDC in forum Help
    Replies: 2
    Last Post: 2010-02-04, 09:45 AM
  2. Sort on Listview for dropdown lists
    By beuten in forum Help
    Replies: 4
    Last Post: 2009-11-30, 12:26 PM
  3. Column Sort Not Working: ListView
    By kurt.maderal in forum Help
    Replies: 5
    Last Post: 2009-07-15, 02:06 PM
  4. Leads - Sort name column by last name in Listview
    By Gorgar in forum General Discussion
    Replies: 5
    Last Post: 2009-02-18, 02:51 PM
  5. Default sort in listView...
    By nomar in forum Developer Help
    Replies: 18
    Last Post: 2006-07-05, 12:31 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •