proper class ordering