set sort to None if no sort order is defined