Add sort function config options.
Apply configured host(group) sort function.