Interactive sorting of numeric value in a row

  • Thread starter Thread starter Guest
  • Start date Start date
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...
 
I want to sort it first before recording. Anyway, those scores will be
recorded in one field.

scubadiver said:
What is the purpose of having the scores in fields rather than records?

--
"Loose Change 2nd Edition" has been seen by almost 7 million people on
Google video


rmercado said:
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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top