Add sort and recurse options to cfg