Updated index to sanitize page, order by, and order direction variables. Updated OR construction to eliminate superfluous variable.