The ordering of XY spin glasses