Add sort algorithm type into cookie.