Fix ICAT datetime in GUI. Refs #8209.

- Sorting should happen only when data is in the table.
- Changed the format of dates to allow them to be sorted easier.
Use long form datetime. Refs #8209.

- `%F` is not supported on windows.
Sort by create time. Refs #8209.
Merge remote-tracking branch 'origin/master' into feature/8209_icat_datetime_fix
Improve index being sorted. Refs #8209.
Merge remote-tracking branch 'origin/feature/8209_icat_datetime_fix'