Fixed bug with not sorted tokens (known should come first, then other tokens).