How to disable change a column when sort another column
How to disable change a column when sort another column
Example: I have table with 4 column:
index | name | phone | action
______________________________
1 | abc | 1234567 | edit
2 | rtty | 1233343 | edit
3 | cba | 5345345 | delete
4 | yuu | 5757656 | add
5 | yyy | 0931323 | delete
6 | eee | 1235435 | edit
7 | abc | 6788900 | add
8 | abc | 5556678 | delete
Problem is:
+ "name" and "phone" is sortable. Now when i sort "name" or "phone", i want the first column
"index" doesn't change, as i see, first column always change with the record it's belong to. so what is the solution i can have?
index | name | phone | action
______________________________
1 | abc | 1234567 | edit
2 | rtty | 1233343 | edit
3 | cba | 5345345 | delete
4 | yuu | 5757656 | add
5 | yyy | 0931323 | delete
6 | eee | 1235435 | edit
7 | abc | 6788900 | add
8 | abc | 5556678 | delete
Problem is:
+ "name" and "phone" is sortable. Now when i sort "name" or "phone", i want the first column
"index" doesn't change, as i see, first column always change with the record it's belong to. so what is the solution i can have?
This discussion has been closed.