Refactor: scheduler: rename sort_clone_instance()
... to pcmk__cmp_instance() to follow current guidelines and indicate that it
can be used for bundles as well as clones.
Also, move it (and static functions only it uses) to pcmk_sched_resource.c, and
add a doxygen block. No code changes otherwise.