change sort factory