Added order variable to context to determine if the sort is ASC, DESC, or not specified.