I’m building a tool where users can submit speed runs for Lego builds.
I’ve got a Set table, a user table and a time table (for submitting times).
What I want to achieve is a ranked leaderboard for each Lego set. I followed a tutorial from @Robert_Petitto but it didn’t show how to create a rank exclusive for each collection row ID.
I’ve attached a screenshot to show where I’m currently up to. What I’m missing is the Rank/Position for the users. It’s currently showing Time taken, User name and date of submission.
What I’m looking to achieve is showing a rank for the order. 1st, 2nd, 3rd etc.
The trouble I’m having at the moment is that I don’t know how to structure the database to provide ranks filtered by the set ID. If I build an array of ranks it does it across all set ID’s
Here’s the the table for the submitted times. I basically want to create a rank for each set ID based on ascending time. There will be multiple submissions per set by multiple people.
Another question: how do you want to present this in the Layout? Would have a single collection grouped by SetID, or would you have the user select a set and then present the rankings for that set?
Regarding Ties: lets say you have have 2 users equal 1st in one set. Would you want to indicate they are tied (eg. T1), or just show them both as number 1?
Also, I noticed that you mentioned 1st, 2nd, 3rd - is it important to include the suffixes, or would 1, 2, 3 be okay?