Refactor: daemons: Keep XML schemas sorted.
Now that we can add schemas multiple times (including after next/none
have been added in the initial set), we've broken the assumption that
schemas are always sorted by scandir.
This introduces a function that can be called wherever to keep them
sorted. It should be called pretty much whenever
pcmk__load_schemas_from_dir is called.