New Sorting/Export preferences

This will add a new "File Sorting" Tab to the preferences that allows to exactly specify the sort and export order of entries, rather than the rather limited set of choices that were available to date.