added check for ordering on the returned iqueryable