Can someone help explain :ranked by?

Hi everyone, I was on the Bubble editor when I came across the :ranked by option. I looked on the Bubble forum, but I’m still confused on what this function does/how to use it effectively.

Thank you,
Dylan

1 Like

:ranked by…

Ranks a list of things by average RMS similarity of all numerical fields to a target item of the same type. Use this to match people for a dating app for instance.

Bubble Reference: https://bubble.io/reference#Data.Messages.list.ranked_by

1 Like

Just like @lantzgould mentioned. I am just too slow at typing… It is used for matching purposes. From the Bubble Reference:

":ranked by…

Ranks a list of things by average RMS similarity of all numerical fields to a target item of the same type. Use this to match people for a dating app for instance."

Here is an example for you:

Editor: https://bubble.io/page?type=page&name=rankedby&id=805testapp42&tab=tabs-1

Preview: https://805testapp42.bubbleapps.io/version-test/rankedby?debug_mode=true

For me, the confusing part was to figure out which number it was comparing. Then I noticed it said “ALL numerical fields” so it actually ranks it by ALL of the numbers I saved in the database attached to the user. Hope that makes sense.

Want to learn more?

www.nocodeminute.com

Hope that helps! :blush:

6 Likes

Thank you, this making more sense now!

1 Like

Glad it helped! Keep up the good work! :blush:

I don’t think I’ve ever used :rank by before. Interesting! Thanks for the info @lantzgould @J805.

3 Likes

This topic was automatically closed after 70 days. New replies are no longer allowed.