Correct assert argument order.
Cleanup of isUnique

isUnique takes the count of the args multiple times.  Store the count in a variable to cut down on overhead.
Merge pull request #5137 from watermark/patch-1

Cleanup of isUnique
Fix SQLite parsing fields incorrectly when using subqueries.

When using subqueries or joining against tables containing FROM the
results were bizzare and unexpected. By tokenizing the entire query we
can more accurately grab the fields.

Refs #3972
Fix issues with sqlite field parsing.

The previous attempt would still fail on unions or derived table join
queries. This new approach is a bit slower but more robust.

Refs #3972
Fix CS, remove extra space
Add order=>false to all treebehavior queries.

Models can define default order conditions that will cause issues with
postgres. By setting order=>false on all the queries emitted by
TreeBehavior, we can avoid this issue and not have issues with models
that define a default ordering.

Refs #5155
Merge pull request #5146 from cakephp/issue-3972

Fix SQLite result sets failing with nested queries or unions
Merge pull request #5159 from cakephp/issue-5155

Add order=>false to all treebehavior queries.

Refs #5155
Merge branch 'master' into 2.6
Merge branch '2.6' of github.com:cakephp/cakephp into 2.6