How are Similar Stocks listed?

How are Similar Stocks listed?

Similar stocks that you see on a Company details page are the stocks belonging to the same industry listed in the decreasing order of Market Capitalization.