0

Is there a way to sort by alpha and ignore the articles ("the", etc.)?

Is there a way to sort, say, "Film Titles," for example, and have the sort ignore articles like "the" and "a" and "an" (without having to list a title as "Bourne Identity, The" for example

5 replies

null
    • Sean
    • 4 yrs ago
    • Reported - view

    Yes, but you'll need to add a field to your table that you will sort by. In Table view you can move the new field off screen so it isn't seen. In Form view you can set the "Display field only, if:" to null to hide it. The easiest way is to use a Formula field and a formula like this...

     

    extractx('Film Titles', "(?:a|an|the) (.+)", "i", "$1")

     

    Just copy and paste the formula to the Formula field.

    • Sean
    • 4 yrs ago
    • Reported - view

    Sorry, I should have tested more thoroughly. This line fixes the problem of not display records without a starting article, but I'm still seeing issues with the sorting.

     

    extractx(Text, "(?:an|a|the )?(.+)", "i", "$1")

    • Sean
    • 4 yrs ago
    • Reported - view

    This appears to fix the sorting issue...

     

    extractx(Text, "(?:a |an |the )?(.+)", "i", "$1")

    • tim.2
    • 4 yrs ago
    • Reported - view

    My apologies for not replying sooner. Thanks for your help. I'm still not getting it to work, but I'll keep fudging with it. Thanks again.

    • Sean
    • 4 yrs ago
    • Reported - view

    No worries. Are you getting an error? What do you see in the Formula field?