update sort by