What do you mean "sort". You could save them to different variables. For example, if you main matrix is called X and you have cluster information stored in a vector called idx, and there are two clusters numbered 1 and 2:
X1 = X(idx==1,:); X2 = X(idx==2,:);
Is this what you mean?