table with sort and submit