content_type strings should be lowercase
fixed removal of table fields and added ability to specific sort field and sort direction.