update sort and language