sorting support float32 and float64