added ability to sort posts based on a GET parameter
added control to sort posts by fields