Simplify LinearCostFunction#sortable_cost