I have difficulties in completing an emerging task. I must implement a table in which some columns must have two fields. These columns must have a sorting functionality through which the user will be able to sort the table by these selected fields. To be more accurate, see the screenshot below:
You can see that some columns contain two fields. When, the user clicks in a field, arrows must be shown and the grid will be sorted by the selected field. When the user clicks the other field (position cost for example), arrows will be shown, the field becomes bold and the grid is sorted by the selected field. Im new in javascript and i dont know how t implement this