debugging the sort order stuff, changed some terminology, only