Create sorting program