Fix error on default sort configuration

Fix crash when using several criteria for default sort in the
configuration file.
Removes unused import (flake8 warning)