Fix direct sorting consistency between labels and cards