change default sort order on portfolios, fix wsgi application entry point