You can have an array of numbers that occasionally has something else inside, if that doesn't bother you. A single sort method sorts arrays of completely heterogeneous elements, as long as you can compare them individually. とあるので、 You don't have to commit to integers and floating point numbers, for example. (それらの配列の要素として)たとえば、整数や不動小数点数だけを入れることに 専念する必要は無い。