Skip to main content
Solved

Sorting tables with articles

  • February 4, 2022
  • 1 reply
  • 0 views

Hello!

Is there a way to sort tables and ignore articles? For example, if we are using a big list of movie or book titles with the words THE, AN, A before the title.

Best answer by kuovonne

Create a formula field that trims those initial words, and then sort on the formula field.

REGEX_REPLACE({Title}, "(?i)^(the\\s+|a\\s+|an\\s+)", "")
View original
Did this topic help you find an answer to your question?

1 reply

kuovonne
Forum|alt.badge.img+27
  • Brainy
  • 6006 replies
  • Answer
  • February 4, 2022

Create a formula field that trims those initial words, and then sort on the formula field.

REGEX_REPLACE({Title}, "(?i)^(the\\s+|a\\s+|an\\s+)", "")

Reply