$collection = $collection->sortBy(function($row) {
    return sprintf('%-12s%s', $row->column1, $row->column2);
});

https://stackoverflow.com/a/25451441/8041445