Relation fields: can the values in the pop-up be sorted?

When the uses clicks on a relation field, a pop-up shows existing values that the related table holds. There is a quick search bar, which works very nice. It looks like the pop-up has some sort of memory, as it first shows values that have been used or clicked recently. For the rest, I cannot see the logic to the sorting of the values.

My client asked if it is possibe to show a sorted list of values. Especially when there are only 10 or 20 values, sorting is a logical and practical way to show the values the user can select from.

Anyone knows a) what the current sorting algorithm is, and b) if we can change the way the values are sorted?

1 Like

@Erik_Mathlener I’d love to know more about this too.
I’ve recognized like you that the first values show recently used related items (which I really like as it’s been super helpful and correct many times over)
But I don’t know the exact sorting logic behind the rest of the values and it would be nice to know the expected rule here.

1 Like

My client has raised this question again. Can we make the list of values in the pop-up an ordered one?
Can @Leo or any other team member comment on this, please?

Hi @Erik_Mathlener,

Of course, very happy to explain! :100:

You’re absolutely right in your observation. However, the logic behind our Relation Picker goes a little further than simply showing recently used records.

We’ve designed it around modern, relevance-based search patterns and state-of-the-art search technology, with a strong focus on personalization, performance, and helping users find the right record as quickly as possible.

Here’s how it works:

1. Instant access to recent records

When you open the Relation Picker, we immediately show your recently accessed records. These are stored in a lightweight, dedicated database, allowing us to display them instantly without waiting for a search.

2. Smart, personalized search

As soon as you start typing, we use a specialized version of our Global Search, optimized for relations.

Instead of simply sorting alphabetically, we use a multi-layered ranking algorithm:

  • Match quality comes first: Exact matches, including unique IDs, email addresses, and phone numbers, receive the highest priority, followed by title matches.
  • Personalized ranking: We consider how frequently and recently you’ve accessed records, with usage weighted over time.
  • Intelligent title matching: Titles starting with your search term are prioritized over those that only contain it.
  • Additional signals: Last modification date and record recency help determine the final order.

The goal is to show you the most relevant records first, based on what you’re actually looking for.

3. Full-text search in parallel

At the same time, we run a full-text search across your records, including descriptions, comments, and other searchable values.

We only include fields that have been enabled in the configuration, keeping the search focused and efficient.

Some of our customers have an average of around 50,000 records per app, so performance is especially important here.

That’s why we use a dedicated search-document architecture, where record content is indexed for fast retrieval. This allows us to deliver relevant results even across very large datasets.

4. Why we don’t currently offer manual sorting

This was actually a deliberate product decision.

Based on our market research and the latest search and UX patterns, we believe that intelligent, personalized search generally provides a better experience than traditional static sorting.

Our goal is to help users find the right record with as few keystrokes as possible, ideally improving the results with every character they type.

Adding configurable sorting would introduce quite a bit of complexity into this architecture. If we introduce user-specific sorting preferences in the future, we’d want to implement them consistently across both the Relation Picker and Global Search.

However, I absolutely understand your client’s use case, especially when working with just 10 or 20 records. It’s a very fair point, and we’ll certainly keep it in mind as we continue improving the experience!

Thanks again for bringing this up, @Erik_Mathlener, and thanks to @CarsonRedCliffLabs as well for sharing his thoughts. Really appreciate your feedback!

Best,
Leo

2 Likes

:exploding_head: the work and thought that goes into these features is truly mindblowing to me. Super cool when you pull back the curtain and let us see what’s under the hood.
Very helpful for us to understand these expected rules as well. Thanks @Leo!

3 Likes

Thank you Leo, for your outstanding explanation of how and why the relation picker works. The choice to make picking easy by typing some characters (instead of scrolling to the desired record) is a good one. This is just the way Tape works, and it is a great one. I will pass this feature to my client, and I think they will be happy.
:smiley:

1 Like