For purposes of this subtitle, the term “ordinary income” includes any gain from the sale or exchange of property which is neither a capital asset nor property described in section
1231
(b). Any gain from the sale or exchange of property which is treated or considered, under other provisions of this subtitle, as “ordinary income” shall be treated as gain from the sale or exchange of property which is neither a capital asset nor property described in section
1231
(b).