New Plugin

Since I’ve been adding a lot of new features to the site I’ve noticed that my functions.php file is getting a little hairy, so I’m putting all of this code together into a new plugin. I’m sure that there are existing plugins that do some of this stuff already (custom avatars, social network links, listing of site users), and then there’s always BuddyPress, but creating this new stuff as a plugin will help me keep things nice and tidy. I am having a little problem though. I built a shortcode to display the site’s users but when I add it to the end of the page I want it on, the output is showing up before the content. Anyone have the solution?