G
Guest
I have 6 Boxes of scores (as B_1, B_2, B_3, B_4, B_5 & B_6). I have to enter
number for each box.
[ ][ ][ ][ ][ ][ ]
I want every entry in each box to check if the value entered is lower than
the previous box(es).
if it is lower than the previous box then the value will swap.
[05][02][ ][ ][ ][ ] ==> actual input
[02][05][ ][ ][ ][ ] ==> desired result
[02][05][08][15][01][ ] ==> actual input
[01][02][05][08][15][ ] ==> desired result
[01][02][05][08][15][07] ==> actual input
[01][02][05][07][08][15] ==> desired result
I hope I made it clear...
number for each box.
[ ][ ][ ][ ][ ][ ]
I want every entry in each box to check if the value entered is lower than
the previous box(es).
if it is lower than the previous box then the value will swap.
[05][02][ ][ ][ ][ ] ==> actual input
[02][05][ ][ ][ ][ ] ==> desired result
[02][05][08][15][01][ ] ==> actual input
[01][02][05][08][15][ ] ==> desired result
[01][02][05][08][15][07] ==> actual input
[01][02][05][07][08][15] ==> desired result
I hope I made it clear...