How to solve sorting of different balls by collection

Viewed 7

Suppose I have one container that contain different colors of ballons

  • such as Red, Blue, Green, Red,Blue,Red, Blue, Green in this order,
  • now sort that baloon in such manner so Red baloon will be added first
  • then Blue baloon and last is Green balloons. Use the proper collection
0 Answers
Related