Score:0

How to sort addresses by Street name in Table View?

cn flag

I have an address directory set up as a view on my D9 website. One of the columns has full addresses like this:

1 Main Street Columbus, OH 00000

I'd like to be able to allow sorting the column by the Street name in the address first and then possibly the number second. Like this:

  • 1 Alpha Rd
  • 2 Alpha Rd
  • 3 Alpha Rd
  • 1 Bravo St
  • 2 Bravo St

By default it sorts considering the first character it sees. So in this case the number because rather is how the data is formatted in the field. Do you know of any way I can accomplish this without changing the data format?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.