Using a combination of new Glide Plugin Columns, you can now rank items based on a raw value (points, score, scale, etc.)
Instead of Join, Split, try Lookup Points on the Things table.
Ooo nice…one less column!
Make this adjustment in order to have your list items “tie” for rank values without skipping ranks:
@Robert_Petitto do you mind if I use this in an education video? Will give you a shoutout.
Oof. Good catch. Yes, for sure.
@Darren_Murphy has also noted the other types we need Sort Array does not work on arrays of dates · Issue #58 · glideapps/glide-code-columns · GitHub
I’m still going to use it though. Thanks @Robert_Petitto. I needed a good use case to crack open tutorials on Array column stuff.
Ya…this is disappointing.
@david I submitted an issue: Sort Array column does not sort numbers · Issue #85 · glideapps/glide-code-columns · GitHub
Very weird the situation, I tested that plugin days ago and worked perfectly using a Number or Text column, it was even very smart by sorting the array.
Today I retested it and it still works perfectly!.
Here my result when my Num column is Number type
and here when my Num column is Text type. The plugin was very smart to recognize that all text values were numbers and could sort it perfect. Otherwise, the sequence would have been different (what Robert has).
Regarding the sorting an array of dates, this is true, the plugin fails. Here I wrote an advise to David about this issue:
🆕 20 new experimental code columns to play with - #33 by gvalero
Okay, I think I figured out how it breaks. It depends how you create your array.
- If you create the array via Joined List → Split text, then pass that to the Array Sort, then it breaks. (It actually does a lexical sort instead of a numerical sort)
- But if you create the array via a Lookup (as @david suggested), then it works perfectly.
Updated video. See original post
Cool tutorial for leaderboards!
One question - how would you display ties?
For example) display as “Tied for 3rd”
I assume you would have to use (at least) ITE and Template columns… the Template being the result of the ITE and your text, but how would the ITE work?
Would this be an example of when you would need a conditional relation?
Thanks again for the tutorial!
There is a lot of discussion on ties in this thread.
I’ll check it out - thanks Jeff!
What I would do is continue on by creating a multiple relation from the ordinal rank column to itself. Then create a rollup column to see how many times that rank exists. Then create an if then else column that looks to see if the Rollup is greater than one and if so results in “Tied for” else blank. Lastly, create a Template Column that starts with that if then else and ends with the rank.
Just to add to my dilemmas of ranking. Each position entry needs to be sorted into categories prior to ranking.
For the life of me, I just can’t seem to find a workable option other than creating multiple sheets for the same event.
I’m a medic by profession so forgive my data naivete.