I'm currently trying to self-study quantum mechanics from Cohen-Tannoudji, and am struggling to wrap my head around the following claim. In section C-4 he says that
[representations of operators] depend on two indices and can therefore be arranged in a 'square' matrix having a countable or continuous infinity of rows and columns.
I didn't study math, but my understanding of countable vs uncountable infinities was basically that countable infinities are those which can be ordered. For example, it is well defined to talk about the integer which comes after some integer $x$, but it is not well defined to talk about the real number which comes after some real number $y$, since the real numbers are not countable.
Basically my question is, if we're dealing with an uncountable (or 'continuous') infinity, how is it possible to have a matrix representation? Doesn't a matrix representation necessarily depend on having some well-defined order which the rows and columns must adhere to? How might you construct such an ordering, for an uncountably infinite collection of rows/columns?