sort table & cond (EQ only), index for EQ (for all col in train)