class tree search works.

pushing sort on classes