add field sorting for table