stubbed sorting and output dates, and impl
refactored command line specs to fix bug