Sortable Data Table Header

Code Name Qty UoM CustID CustName Type
{{item.Code}} {{item.Name}} {{item.Qty}} {{item.UoM}} {{item.CustID}} {{item.CustName}} {{item.Type}}

How to sort data by tapping on any column header. Please help matter most urgent.
Please modify the above code to make it working using sortable feature on column headers

  1. Обрабатываем клик на названии
  2. Сортируем данные JSом
  3. Вызываем $setState()

В чем проблема-то?

Since I m quite a novice hence not able to figure out. Can u kindly modify to make it work and post it or email it to me at: [email protected]