how do you automatically sort by more points?
-
good afternoon to everyone!
tell me how to do in our program.
sorting by numbers?
quiz game.
10 teams play.
players score points.
that is, there are 10 columns in the table.
how do you automatically sort by more points? -
You'll need to make friends with the Javascript actor in order to make this happen.
-
good afternoon friends!
yes my friend, you're right.
i thought so.
could anyone in our community help me?
grateful in advance for any help -
I do not speak Javascript, but I suspect these links probably contain examples of some of the code you'll need:
Defining variables (storing team scores as variables): https://www.w3schools.com/js/js_variables.asp
Javascript arrays (storing team names and scores together): https://www.w3schools.com/js/js_arrays.asp
Sorting Arrays (to sort the teams by score): https://www.w3schools.com/js/js_array_sort.asp
This Youtube video might also help