fixed handling of incorrect range header
added sort parameter handling to crab views