• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Sorting a Leaderboard

Status
Not open for further replies.
Level 14
Joined
Aug 30, 2004
Messages
909
I'm making a leaderboard to display the weapons a car has access to (up to 9). Each player has their own leaderboard (though I've been testing it with just 1 player). I want to identify the empty weapon slots and remove them from the leaderboard.

I couldn't find any "remove row" actions, but I could find a set number of rows action. I figured I'd sort the rows, put dummy numbers in the empty gun slots so they are sorted to the bottom, and then trim the number of rows to the desired number.

The problem:

  • Leaderboard - Sort Cars[playerNumber].Leaderboard by column 4, in Ascending order, with priority 1
Appears to do absolutely nothing. I tried sorting in ascending/descending order... i tried sorting a row filled with strings, one filled with reals, one filled with integers.

Does anyone know why sorting a row wouldn't do anything? Does it only sort by player number or something?
 
Status
Not open for further replies.
Top