Set sort for portfolio posts by date in admin area. Cleaned up code