Numbers generating, sort needs fixed