View Hierarchy - Non-alphabetical sort

Posted on 2005-04-29
Last Modified: 2013-12-18
Hi all-
I would like to create a view that allows me to control how I want a field value sorted.  
The specific example is that I have a field that indicates the importance of a form.

The available values are:

I would like to sort it this way, but every time I create a view, it defaults to sorting it alphabetical, like this:


I would like to be able to reverse the sort too.

Thanks for your help!
Question by:Aquilon7
    LVL 9

    Accepted Solution

    In a column to the left of the category, put in this formula:

    @Member(CATEGORYFIELDNAME; "Urgent":"High":"Medium":"Low");

    Enter your category field in place of CATEGORYFIELDNAME

    Also set the column to sort ascending.  The function will return 1 for Urgent, 2 for High, etc...
    LVL 46

    Expert Comment

    by:Sjef Bosman
    Insert a hidden column, sorted ascending, just to the left of your column, with a translation formula, like
        @Replace(Priority; "Urgent":"High":"Medium":"Low"; "A":"B":"C":"D")

    You can unsort your column then.
    LVL 14

    Expert Comment

    Cool tip HappyFunBall !


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
    This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now