private function compileSortables(array $sortables)
{
$out = [];
foreach ($sortables as $index) {
$data = [];
if ($index->getColumn()) {
$data[Schema::INDEX_COLUMN] = $index->getColumn();
}
$conditions = $this->compileConditions($index->getConditions());
if ($conditions) {
$data[Schema::INDEX_CONDITIONS] = $conditions;
}
$out[$index->getName()] = $data;
}
return $out;
}