Added sort configuration option