select * from customers_info
order by(
    case
        when city is not null then city
        else country
    end
)