improve sort widget