Orientational ordering transition in a continuous-spin ferrofluid