Sort the rings connected to each other with ropes. Colorful rings and threads will be tied together and threaded onto the sticks. Untie the knots and sort all rings.