update sorting for teammember and update