Fixes bug: orderSamples() didn't treat correctly cases in which a
subtype contains only one sample