x First time here? Check out the FAQ

Come work for Umbraco - The Umbraco HQ are hiring Project managers, .NET developers and DevOps people!

  • Avatar50posts79karma

    Suggestions to list & group nodes alphabetically by last name

    mmmoustache started this topic March 8, 2012 @ 03:34

    I'm looking for suggestions on how to render a list of people, that are then sorted and grouped into sections by their last rname, i.e. 'A-E' & 'F-H'. Probably the biggest hurdle is that the site is pre-existing and therefore the nodes have their names written in full, rather than separate fields for first and surname.

    Is there a 'razor only' method so that this in the content tree:

       - John H
    - John D
    - John B

    can be rendered and grouped like this on a page:
    A-E
    John B
    John D
    F-H
    John H


Please login or Sign up To post replies