ClassLabel sorter improved
sanity checks added