Added function to generate ranked table of stocks in portfolio