Added sorting to boolean result lists.