Added the capability to define collection sorting via config option