<p>I have a list of input words separated by comma.  I want to sort these words by alphabetical and length.  How can I do this without using the built-in sorting functions?</p>

There is an entire area of study built around
sorting algorithms
.  You may want to choose a simple one and implement it.
Though it won't be the most performant, it shouldn't take you too long to implement a
bubble sort
.