A Java script program needed for sorting the columns?

R

RG007

col 1 col 2 col 3 col 4
row 1 1 8 6 1
row 2 2 7 4 0
row 3 3 9 5 1
Total 6 24 15 2


Table is like this we need to sort in the ascending order the "total"
row. If we click on the "Total" then all the columns should rearrange
according to that total. that means the out put looks like.



col 4 col 1 col 3 col 2
row 1 1 1 6 8
row 2 0 2 4 7
row 3 1 3 5 9
Total 2 6 15 24

A Java script program needs to be written for that?
How to do this?
 
R

Robert Klemme

RG007 said:
col 1 col 2 col 3 col 4
row 1 1 8 6 1
row 2 2 7 4 0
row 3 3 9 5 1
Total 6 24 15 2


Table is like this we need to sort in the ascending order the "total"
row. If we click on the "Total" then all the columns should rearrange
according to that total. that means the out put looks like.



col 4 col 1 col 3 col 2
row 1 1 1 6 8
row 2 0 2 4 7
row 3 1 3 5 9
Total 2 6 15 24

A Java script program needs to be written for that?
How to do this?

1. Fairly incomplete problem description.

2. Java != JavaScript

3. This looks like a homework assignment.

So, *if* you post, please post a complete description of your problems, do
it in the appropriate place and do your homework yourself. Thank you!

robert
 

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

Staff online

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top