added interactive sorting of table fields