clean script; sorted entries