replaced partID sort with sortutil