fixed sort collections bug; sort order parameter was not being passed.