clean up new or in process sorting code so it always returns a relation.
clean up new or in process sorting code so it always returns a relation.

tablexi/nucore-open,tablexi/nucore-open,tablexi/nucore-open,tablexi/nucore-open