When a company goes bottom up, the first to be paid will be the bond holders together with other creditors of the company. Stocks investors will be one of the last to be paid. It depends the type of shares you had invested. Preference shares holders will be paid in priority over Ordinary Shares holders.