add weight to terms, highly weighted terms appear earlier.