I have two groups of textboxes, A and B and these are created dynamically.

My program should work like this: 1. A textboxes have corresponding B textboxes. 2. Then, B textboxes should be sorted by their values in ascending order. 3. Based on that order, the A textboxes' values will be sorted also.

Input:
![enter image description here](https://i.stack.imgur.com/n0zYv.png.)

Output:
![enter image description here](https://i.stack.imgur.com/urXCz.png)

Please help me. Thanks!