Add sort and recurse options to cfg

Entries in config.h for config.cc and main.cc