Modularize and sort list items on addition.