Quote:
Originally Posted by Operon5
I am trying to sort items according to their height. I want to use a selection sort algorithm but I'm having trouble figuring out how to use one in the Alice program. I'm using Alice 2.2
Thanks.
|
As far as I am aware, there is no inbuilt feature in Alice that accomplishes this. (No matter how much I would like it.)
However, I am sure that it is feasible to attempt to do this manually. You could, for example use functions for each object to determine their height, then make it such that the higher they are, the further they move forward/move up a list/ change color, or anything of the sort.
Try to experiment a bit.