Discuss Scratch

MarblePython
Scratcher
9 posts

How to sort lists from highest to lowest.

Hi I made a script that sorts lists from highest to lowest while making a highscore sheet for my flappy bird project if anyone else needs it is under the stage sprite and starts with
when I receive [10]
.
Tell me what you used it for because I think it can be a big help with some projects, just add it to your backpack and use it when you want.
HarryB178
Scratcher
1000+ posts

How to sort lists from highest to lowest.

Hope this helps!

I made it just for you, though anyone can use it as long as they give credit.

Last edited by HarryB178 (April 22, 2014 10:52:30)

Jolly8902
Scratcher
2 posts

How to sort lists from highest to lowest.

HarryB178 wrote:

Hope this helps!

I made it just for you, though anyone can use it as long as they give credit.

Hey, Harry B178, Can you explain how this works? I'm having a hard time understanding how to use it and I don't want to blindly copy and paste this onto my project without fully understanding it.
Thanks!
karlosc123
Scratcher
2 posts

How to sort lists from highest to lowest.

Jolly8902 wrote:

HarryB178 wrote:

Hope this helps!

I made it just for you, though anyone can use it as long as they give credit.

Hey, Harry B178, Can you explain how this works? I'm having a hard time understanding how to use it and I don't want to blindly copy and paste this onto my project without fully understanding it.
Thanks!


Jolly it works like a scanner it starts comparing number 1 on the list with 2 and seeing which is greater and the lower one compares to 3,4,5,6,7,8,9 until the list is over and insert it at the place where it belongs
cs5201918
New Scratcher
1 post

How to sort lists from highest to lowest.

What if I want it make it lowest to highest?
bluedragon8633
Scratcher
1000+ posts

How to sort lists from highest to lowest.

cs5201918 wrote:

What if I want it make it lowest to highest?
Then you would flip this block:
<[] > []>
U_U-I-LUV-PUPPYS-U_U
Scratcher
11 posts

How to sort lists from highest to lowest.

Last edited by U_U-I-LUV-PUPPYS-U_U (March 8, 2021 14:18:58)

2124052
Scratcher
1 post

How to sort lists from highest to lowest.

Jolly8902 wrote:

HarryB178 wrote:

Hope this helps!

I made it just for you, though anyone can use it as long as they give credit.

Hey, Harry B178, Can you explain how this works? I'm having a hard time understanding how to use it and I don't want to blindly copy and paste this onto my project without fully understanding it.
Thanks!
Ok so what I am so confused by what the counter variable is there for
VioletCalico
Scratcher
1000+ posts

How to sort lists from highest to lowest.

Hi! Could you please change the name of this post? Since the name of this kinda makes the viewer assume this is a guide, this may get removed by the scratch team (they are not allowing new guides). Thanks!!
Und3rt4l3f4n
Scratcher
1 post

How to sort lists from highest to lowest.

HarryB178 wrote:

Hope this helps!

I made it just for you, though anyone can use it as long as they give credit.
Hey, for some reason this doesn't work when I have text with it, even though it doesn't seem like an error caused by the text. Sorry if i'm just being dumb.
What it does for me, is it goes through each one starting with 1, then each one starting with 2, then 3, and so on.

Also, sorry for necropost

Last edited by Und3rt4l3f4n (Jan. 18, 2022 04:50:06)

WojtekGame
Scratcher
1000+ posts

How to sort lists from highest to lowest.

Jolly8902 wrote:

HarryB178 wrote:

Hope this helps!

I made it just for you, though anyone can use it as long as they give credit.

Hey, Harry B178, Can you explain how this works? I'm having a hard time understanding how to use it and I don't want to blindly copy and paste this onto my project without fully understanding it.
Thanks!
Please don't necropost
WojtekGame
Scratcher
1000+ posts

How to sort lists from highest to lowest.

Und3rt4l3f4n wrote:

HarryB178 wrote:

Hope this helps!

I made it just for you, though anyone can use it as long as they give credit.
Hey, for some reason this doesn't work when I have text with it, even though it doesn't seem like an error caused by the text. Sorry if i'm just being dumb.
What it does for me, is it goes through each one starting with 1, then each one starting with 2, then 3, and so on.

Also, sorry for necropost
Same for me and others

Powered by DjangoBB