Sortable code completed