new class sorting