add option to change time sort order