Fixed tiny factory sort issue