How do I sort by employee last name when grouped by employee id?

Hi,
The first Group is: Employee ID.
The second Group is: Employee Last Name.
I wish to sort the entire report by Employee Last Name; however, standard crystal reports sorting functionality doesn't present me with this ability. As a result, the report is sorted by Employee ID.
Can someone help me how to sort by Employee Last Name in this scenario?
thx,
Mark

Hi Mark,
When you create a Group in the report, Crystal reports automatically adds the grouped fields in the Sort list which unfortunately cannot be removed! You cannot change the priority of the sort fields too, and the only way of achieving this is by actually changing the group order. But it wouldn't help the purpose.
As a workaround, here's what you can do though:
1) Create a command object and provide a pre-sorted result set to Crystal Reports. In this situation you would probably create a command object like :
select Emp_ID, Last_Name from Emp order by Last_Name asc
2) Create the 2 groups in the report again. Open the 'Group Expert', click on the first group and then click 'Options'
3) The Sort order for this group would be 'in ascending order' by default. Change it to 'in original order'
4) Repeat the above step for the next group
This is the only way I know of sorting a report on another field.
Let me know how this goes!
-Abhilash

Similar Messages

  • How do I sort artists by last name in iTunes?

    HHow do I sort artist by last name in iTunes without tagging each album?

    For individual songs, Get Info has a sort field.  If you have a lot of songs, it will still be a lot of work to get caught up, though.
    Good luck
    srb

  • ISync: Sony Ericson 750i: How do I sort contacts by last name?

    Unlike apples adressbook, my cellphone (Sony Ericsson 750i) does not have different fields for "first name" and "surname", which means, that all my contacts are sorted by first name.
    How can I change this?

    On the phone, go to *Contacts > Options > Advanced > Sync Order*
    or see page 59 in the user guide:
    http://www.sonyericsson.com/cws/download/1/167/202/1192990327/K750iUG_R2bEN.pdf

  • Sorting "artist" by last name

    How do I sort artists by last name, i.e. Davis, Miles rather than Miles Davis?

    I don't believe this issue is resolved. I believe it is a fundamental flaw in the iPod. If I'm look for a Frank Zappa song, iPod sorts it so that it's filed under "F" for Frank. Blech. The problem is, iPod does not have artist first and last name fields, just "Artist".
    So the solution proposed above does work, but man, what a pain.
    In the case above, an alternative (and quicker?) solution is to change the Artist Name sort field to "Davis" or "Davis, Miles" click OK, then click apply Artist sort to all songs by this artist, which iPod will do gracefully. But, man, with over 3,000 songs and who knows how many hundreds of Artists, Albums, and individual cuts, what an arduous process!
    The fix is to have first and last name fields or to get "smart" and recognize a space between names so that an algorithm could be written to sort properly. Of course in that scenario, doing a mass conversion, "Led Zeppelin" would be filed as "Zeppelin, Led". Argh. (File as Zep).

  • Contacts sorted by phonetic last name

    When I enter a phonetic last name for a contact, that contact is then alphabetized by the phonetic name, not the real name. Does anyone know how to fix this?

    I have the same problem, maybe I can provide more details.
    When creating a new contact, in "Additional fields" there is for example "Phonectic first name" and "Phonetic last name". This would be used if a name is pronounced differently than how it is written or if a name is difficult to pronounce one could put in an easier name here.
    My contacts are sorted by last name. Now for example I enter the following new contact:
    First name: Margaret / Last Name: Baumann / Phonetic first Name: Grit
    Now, my contacts under "B" look as below. Sorted correctly by last name, Bauman Margaret should be 2nd from the top, but she is last in the list, after Ben... and Ber... (the ... are only for anonymizing purposes)
    Bar... M...
    Bau... R...
    Bau... W...
    Ben... B...
    Ben... F...
    Ber... P...
    Baumann Margrit
    If I remove the phonetic first name, the contact is shown correctly as 2nd from the top.

  • How do you sort photos by face/name on iPad2?

    How do you sort photos by face/name on iPad2?

    iPhoto is designed to work with photos from cameras, and so seeks the date in the Exif metadata that the camera writes to the file.
    There is no way to organise photos by the date they were imported to iPhoto.
    Regards
    TD

  • I have my contacts sorted and displayed last name, first name - however when I access my contact list via message they display first name, last name - WHY????

    Contacts sorted and dispalyed last name, first name - why when I access contacts via messaging do they display first name, last name?

    Hi
    It is when I tap on the +....
    My husbands display with first name first but grouped by surname alphabetically.
    Thanks
    Cat

  • How to retain numerical order (Of file names) when combining files in Acrobat (9) Standard

    How to retain numerical order (Of file names) when combining files in Acrobat (9) Standard, please see the attached screenshot for a clearer explanation.
    I understand that if we prefix all files with leading zero's this will probably resolve the issue but I just wondered if anyone new the answer. The ironic situation is that version 6 has no problem.
    I have spent over an hour with techincal support who were unable to provide me with an answer

    It is not clear how you are trying to do the order. Have you tried to select a set of files and then use the arrow buttons to move them in the list? If you select the heading, that will typically reorder the files by that heading and undo everything you had done before.
    You should be able to select groups of files and move them up and down in the list. All of those options appear on your view, so what is the real question?

  • HT4528 How do I reset my iCloud user name when my email used before is no longer active? Also my iCloud was never verified with my old email on my iPad is I am stuck.

    How do I reset my iCloud user name when my email used before is no longer active? Also my iCloud was never verified with my old email on my iPad is I am stuck.

    Hey Dorekelly,
    Thanks for the question. It sounds like you wish to change the email address associated with your Apple ID and iCloud account. The following resource should guide you through this process:
    Change your Apple ID
    http://support.apple.com/kb/HT5621
    Afterwards, be sure to read about updating the features and services that you use with Apple ID:
    Apple ID: What to do after you change your Apple ID
    http://support.apple.com/kb/HT5796
    Thanks,
    Matt M.

  • HT3771 how do you delete printer in last use when you try to add new printer again

    how do you delete printer in last use when you try to add new printer again?

    System Preferences > Print & Scan (Print & Fax on older versions of OS X)
    Select the printer and click the "–" (minus) button.

  • How do get my address book to sort/display by Last Name?

    I would like my Thunderbird Address Book to display by Last Name. How can I accomplish this?

    In the Address Book, display the menu, then '''View|Show Name As…'''
    then sort in the usual way.
    http://www.ramsden.org.uk/8_How_to_sort.html

  • How to replce the ename with last name & first name in this program

    Hi all,
    The below include program is with the reference of std report CATSSHOW.
    in which ename is the field to fetch the employee name, but now we want the emloyee name like last name & first name i.e in two separte column.
    how i implement this change in this include program.
    ENAME IS Define like that
    ename LIKE pernr_list_structure-ename,
    If u whant to refer the report put u can execute the std repot CATSSHOW.
    Pls help on this.
    Send me the code.
    pls find the include prgram ZHNO_INCLUDE_CATSDATA from where they declare the ename.
    4.6B
    QWKP99K050532 13081999 note 167550
    4.6A
    XQIALRK154280 19.11.98 key date on selection screen
    4.0C
    YIKALRK098973     30.03.1998  F4 Hilfe für Objektid
      INCLUDE CATSDATA                                                   *
    db-tabellen
    TABLES:
      prps,
        catsdb,
        catsdb_ext.
    Remarked by LuX 11 Dec. 1998
       crhd.                                                 "YIK
    dd-structuren
    TABLES:
        gdstr,
        gdset,
        catsd,                             "dialogstruktur
        sscrfields,
        t77mt,                             "modulübergreifende texte
        objec.
    Remarked by LuX 19981210 - CATS decoupling (seems not used)
      rcr01.
    "arbeitsplatz aus sicht pläne
    Added by Jerlece on 04/04/2002 - SIR 2836
    TABLES:
        pa0001,           "HR Master Record: Infotype 0001 (Org. Assignment)
         hrp1000.          "Infotype DB table : 1000
    *End of addition
    type-pool enthält feldkatalogstruktur
    TYPE-POOLS:
        kkblo.
    konstanten
    CONSTANTS:
      DATENULL20          TYPE D             VALUE ' ',      QWKP99K050532
        datenull20          TYPE d             VALUE '        ',
        datenull30          TYPE d             VALUE '00000000',
        no                  TYPE c             VALUE 'N',
        off                 TYPE c             VALUE '0',
        yes                 TYPE c             VALUE 'Y'.
    Added by Jerlece on 10/04/2002 - SIR 2836
    DATA: BEGIN OF i_objid OCCURS 0,
             objid(100),
           END OF i_objid.
    End of addition
    DATA:
        gt_sp_groups TYPE kkblo_t_sp_group WITH HEADER LINE.
    DATA for REFRESH of PCHSOBID
    DATA : old_otype LIKE wplog-otype VALUE 'O'.
    DATA: BEGIN OF i77eo_key,
             mandt LIKE t77eo-mandt,
             otype LIKE t77eo-otype,
           END   OF i77eo_key.
    DATA: BEGIN OF i77eo OCCURS 2.
             INCLUDE STRUCTURE t77eo.
    DATA: END OF   i77eo.
    DATA: BEGIN OF i778l OCCURS 5.
          INCLUDE STRUCTURE T778L.
    DATA:   langu LIKE t778l-langu.
    DATA: END OF   i778l.
    DATA   allowed_pernr_index       LIKE sy-tabix.
    DATA    flag_save                 TYPE c.
    DATA:  selcheck_save_struk_index LIKE sy-tabix.
    felder
    DATA:
        flag           TYPE c,             "Drucktastenbelegung
        saveflag       TYPE c,
        saveflag_esa   TYPE c,
        f_stich        TYPE c VALUE yes,   "1. X sichtag
        daynumber      TYPE c,             "Wochentagnummer 1-7
        pchobjid_count TYPE i,
        i778l_count    TYPE i,
        i77eo_count    TYPE i,
        txtid          LIKE t77mt-txtid,   "Wochentagtext
        exist_werk     TYPE c,             "werk eingegeben
        week           LIKE scal-week,     "Wochen zum Tag
        no_selection   TYPE c.             "YIKALRK167448
    DATA: BEGIN OF icatsdb OCCURS 0.
             INCLUDE STRUCTURE catsdb.
           include structure cats_exten.
    *data: checkbox(1) type c,
         lights(1)   type c,
    DATA:  END OF icatsdb.
    DATA: BEGIN OF selcheck OCCURS 0,
             fielname  LIKE dbindfld-field,
             flag(1)       TYPE c,
           END OF selcheck.
    DATA: BEGIN OF selcheck_save_struk OCCURS 0,
           FIELNAME(10)  TYPE C,                               NOTE 167550
             fielname      LIKE dbindfld-field,                 "note 167550
             flag(1)       TYPE c,
           END OF selcheck_save_struk.
    DATA: BEGIN OF selcheck_save OCCURS 0,
           FIELNAME(10)  TYPE C,                               NOTE 167550
             fielname      LIKE dbindfld-field,                 "note 167550
           END OF selcheck_save.
    DATA : BEGIN OF maco_objects OCCURS 5,
              plvar LIKE plog-plvar,
              otype LIKE plog-otype,
              objid LIKE plog-objid,
            END   OF maco_objects.
    RANGES so_datum_save FOR catsdb-workdate.
    INCLUDE .
    datendeklarationen für CATSSTRC                                     *
    TYPE-POOLS: kkblo, capp.
    TYPES: tabix LIKE sy-tabix OCCURS 0.
    TYPES: BEGIN OF icatsdb_lst_type.
             INCLUDE STRUCTURE catsdb.
    TYPES:   checkbox(1) TYPE c,
              lights(1) TYPE c,
              ename LIKE pernr_list_structure-ename,
           END   OF icatsdb_lst_type.
    TYPES: icatsdb_lst_type_table TYPE icatsdb_lst_type OCCURS 0.
    TYPES: BEGIN OF allowed_pernr_type,
             pernr LIKE catsdb-pernr,
             ename LIKE pernr_list_structure-ename,
             begda LIKE catsdb-workdate,
             endda LIKE catsdb-workdate,
           END   OF allowed_pernr_type.
    TYPES: allowed_pernr_table TYPE allowed_pernr_type OCCURS 0.
    DATA: allowed_pernr TYPE allowed_pernr_table WITH HEADER LINE.
    DATA: yx TYPE c VALUE 'X'.
    DATA: is_variant LIKE disvariant.
    DATA: es_variant LIKE disvariant.
    DATA: fcode(4).
    DATA: subrc LIKE sy-subrc.
    DATA: approve TYPE c.
    rhx-f4-objid-data.                    "YIKALRK098973
    INCLUDE rhodat00.
    Added by Lu Xiaozhou for CATS decoupling 10 Dec. 1998
    DATA: sys_type LIKE tcesyst-devtype.
    DATA: posid TYPE ps_posid.
    *added by anand on 8/21/02 TD 1480 ========>D20K908220
    *ranges for date to build & then put in selection criteria
    RANGES r_datum FOR sy-datum.
    *end of addition on 8/21/02 TD 1480=======>D20K908220
    *added by anand on 9/10/02 TD 1513 =======> D20K908525
    *New internal table to get the begin & end date also with ENum
    DATA: BEGIN OF it_pers OCCURS 0,
            pernr LIKE pa0001-pernr,
            begda LIKE pa0001-begda,
            endda LIKE pa0001-endda,
           END OF it_pers.
    *end of addition on 9/10/02 TD 1513 ======>D20K908525
    begin of anc01
    DATA: BEGIN OF i_pernr OCCURS 0,
           pernr LIKE pa0003-pernr,
           END OF i_pernr.
    DATA: BEGIN OF i_persa OCCURS 0,
           persa LIKE t500p-persa,
           END OF i_persa,
           BEGIN OF i_persk OCCURS 0,
           persk LIKE t503k-persk,
           END OF i_persk.
    DATA: BEGIN OF i_orgeh OCCURS 0,
           orgeh LIKE t527x-orgeh,
           END OF i_orgeh.
    DATA: BEGIN OF i_pa0105 OCCURS 0,
           pernr LIKE pa0105-pernr,
           usrid LIKE pa0105-usrid,
           END OF i_pa0105.
    end of anc01
    begin of TD 4107 Anand
    store sub org units
    DATA: BEGIN OF i_sobid OCCURS 0,
           sobid LIKE hrp1001-sobid,
           END OF i_sobid.
    store user entered org units
    RANGES: r_orgeh FOR pa0001-orgeh.
    end of TD 4107 Anand
    *Added by Ketan Joglekar, SIR6599 05/08/2006  D20K921585
    DATA: ws_mandt LIKE sy-mandt. "#EC NEEDED
    *Added by Ketan Joglekar, SIR6599 05/31/2006  D20K921851
    DATA: BEGIN OF wa_catsco_temp,
           counter LIKE catsco-counter,
           belnr LIKE catsco-belnr,
           trans_no LIKE catsco-belnr,
           docnr LIKE catsco-belnr,
           END OF wa_catsco_temp.
    *End of changes Ketan Joglekar, SIR6599 05/31/2006  D20K921851
    DATA: BEGIN OF i_cobk OCCURS 0,
          counter LIKE catsco-counter,
          docnr LIKE catsco-belnr,
          budat LIKE cobk-budat,
          END OF i_cobk.
    DATA: ws_week LIKE scal-week.
    *End of Changes.
    -> D10K919801
    DATA: w_aut_zhr15  type c,
           w_aut_zhr17  type c.
    -> D10K919801

    Completely support!
    I yesterday switched from I-mate PDA2K and got over 200 contacts from Outlook to my 6820 in format of first name space father name space second name. Terrible!
    My phone fails to search by the last name - search is useless in fact. And last names are almost invisible because of long first and father names in Russian.
    It's a nightmare. Could anybody help please? How to sync with Outlook to have last name first???
    Best Regards,
    Vladimir.

  • Sort contacts by last name, not phonetic last name

    When I try to sort my Contacts by "Last, First", iOS (version 5 on iPhone 4) actually sorts them by Phonetic last name, then phonetic first name. I have populated the Phonetic names of some people with deceptive name spellings so I can voice dial them, but obviously want them to sort by their actual listed spelling—silent letters and all. Is there a way to work around this problem or is this an Apple bug.

    Basic searches for "sort phonetic iphone" turn up LOADS of gripes about the downside of using the phonetic fields (non-alphabetized sorting) which almost certainly outweigh the benefits of same field's use.
    Look at these ARCHIVED discussions (TONS of views, no fixes replied with) on Apple's own support forums from YEARS ago. Why hasn't this obvious BUG been addressed in years worth of updates? Come on Apple!
    Address Book Alphabetizes Names by Phonetic Spelling
    201 Views 0 Replies Latest reply: Feb 1, 2009 2:04 PM by Merged Content 1
    When entering a phonetic spelling in Address Book for a Contact's name that is hard to pronounce, Address Book files that Contact by the phonetic spelling instead of their real name. It is very odd to file Contacts this way; most people look up someone's name by the way it is spelled. It is too difficult to remember letters used to aid pronunciation when looking it up. For example, a common Vietnamese name 'Nguyen' is actually pronounced 'wen'. If I enter 'wen' in the phonetic spelling field, I will have to remember to look up Mr. Nguyen under 'W'.
    Filing under the contact's real name would be best, but an option could be at least allowing a choice between the real and phonetic name; just like the choice of filing by 'Company' or 'Contact' that Address Book currently has.
    Anyone figured a work around for this? I sent Apple feedback on the problem, but it hasn't changed in 3 years. 
    Address book -- turn off phonetic sorting?
    120 Views 0 Replies Latest reply: Sep 10, 2009 8:48 PM by bryston
    In order to make better use of the iPhone 3GS voice control dialing feature, I have add phonetic representations for some of my contacts. However, when I do this I noticed that the address app sorts these contacts by their phonetic spelling. (For instance the name 'Zhou' is pronounced 'Jo', and is sorted under the letter J).
    This seems kind of weird default behavior and should at least be configurable. Anyone know some way to do this?
    Thanks
    MBP Unidbody, Mac OS X (10.6)

  • Sorting Contacts by Last Name on DROID 2 Global

    I have not been able to find a way to sort my contacts by last name then first. My contacts are downloaded from my exchange server.  Within my Outlook client they are sorted by Last name.  Is there a fix for this?

    For the droid2, unfortunately not that I know of. The custom contacts manager that Motorola added to the D2 doesn't support sorting by last name.
    Until Android 2.2 the Android OS didn't support it at all. In the 2.2 update that was provided an option for this was added, but with Motorola providing a "custom version" of the contacts manager, this option never made it in.
    Sorry.
    jason

  • Sort Contacts by Last Name

    Is there a way to sort the contacts list by last name?

    You cant do this with Froyo 2.2.1 but this option is in the new Gingerbread update, try waiting a lttle more time because it appears the update may be out soon..

Maybe you are looking for