Added the config option sort_mode to sort in alpha order