The following shall be used in the decision:
select title, ( stock_one + stock_two ) as global_stock from product order by 2, 1
However, the alias should work, but not necessarily this expression. What do you mean by global_stock = 0? You mean the following:
select title, ( stock_one + stock_two ) as global_stock from product order by (case when global_stock = 0 then 1 else 0 end) desc, title
source share