Sortable: Don't create functions inside loops.