sorting for float, double and characters also without memcpy