Fix for Database::_sort (#986). Will not output ORDER BY clause if given field is empty (ie. if  = array()).
Updated a test case.
Merge pull request #987 from marcghorayeb/fix-sql-empty-sort

Fix Database::_sort outputs empty ORDER BY clauses
Merge branch 'master' into dev