Generate Row Numbering Based on specific Column arrangement

Generate Row Numbering Based on specific Column arrangement

a_ja_j Posts: 10Questions: 1Answers: 0

I have a 6 row table with 9 columns.
First column is dedicated for numbering, while 9th column is the default ordering of the table in descending order.
Now i want to number the rows automatically based on 9th column arrangement and also make it searchable and order-able.
Column 9 sample data
39100000000000
6690000000000
3820000000000
2660000000000
1080000000000
540250000000

Taking into account column 9 sample data, whenever the table loads, numbering will be generated in column 1 as seen below.
1
2
3
4
5
6

After table is generated, i also want column 1 sortable and searchable by following the order of column 9.
i.e if column 9 is sorted in ascending order, column 1 would become 6,5,4,3,2,1 and same goes for column 9 too, whenever column 1 is sorted in descending order, column 9 will start from lowest value.

My sample code can be seen here

Any solution would be appreciated.

Replies

This discussion has been closed.