Sort the list of available modules (see #6391)