Discuss Scratch

Megahackerboss_1
Scratcher
64 posts

how to create such a sorting system?


I want my sorting system to sort and name the pets and their power, is that even doable?I need urgent help because without it my project will not go further
Spentine
Scratcher
1000+ posts

how to create such a sorting system?

You can use a sorting algorithm such as quick sort. I am on mobile right now so am unable to provide the full solution.
Megahackerboss_1
Scratcher
64 posts

how to create such a sorting system?

Spentine wrote:

You can use a sorting algorithm such as quick sort. I am on mobile right now so am unable to provide the full solution.
I know but I don't know how to create a sort to sort pets like for example cat has power 3 and wants it to be equal to sorted 3
legendary34678
Scratcher
1000+ posts

how to create such a sorting system?

How do you want to sort the list? From least to greatest?
Spentine
Scratcher
1000+ posts

how to create such a sorting system?

legendary34678 wrote:

How do you want to sort the list? From least to greatest?
so uh if anybody has a quicksort script that can sort dictionaries rather than just lists i would be happy lol i think i have one but it probably bad
Megahackerboss_1
Scratcher
64 posts

how to create such a sorting system?

legendary34678 wrote:

How do you want to sort the list? From least to greatest?
From the biggest to the smallest

Powered by DjangoBB