update sort function
update version