/**
  * Sorts the map primary keys, if necessary.
  */
 private function lazySortPrimaryKeys()
 {
     $this->map->sortPrimaryKeys();
     $this->primaryKeysSorted = true;
 }
 /**
  * Returns whether the collection is empty.
  *
  * @return bool Returns `true` if the collection is empty and `false`
  *              otherwise.
  */
 public function isEmpty()
 {
     return $this->map->isEmpty();
 }
 /**
  * @expectedException \OutOfBoundsException
  */
 public function testSortSecondaryKeysFailsIfNotFound()
 {
     $this->map->sortSecondaryKeys('foobar');
 }