fix genle sort