updating sort to use class Name to sort classes when nothing else works