parser for viewing order and ordering