public function testOrderingWithInteger()
{
$repo = $this->getRepo('countries');
$qe = new QueryExecuter($repo, $this->getPredicate(), array(), array('population DESC'));
$result = $qe->run();
$this->assertEquals('China', $result->first()->id);
$this->assertEquals('India', $result[1]->id);
$pred = $this->getPredicate()->where('population', '>', 0);
$qe = new QueryExecuter($repo, $pred, array(), array('population'));
$result = $qe->run();
$this->assertEquals('Pitcairn Islands', $result->first()->name);
$this->assertEquals('Cocos (Keeling) Islands', $result[1]->name);
}