sort part is revised