sorting corrections