Add svn_sort__array() -- simple wrapper around qsort() to sort APR array 
and use where applicable.

* subversion/include/private/svn_sorts_private.h
  (svn_sort__array): New declaration.

* subversion/libsvn_subr/sorts.c
  (svn_sort__array): New.

* subversion/libsvn_client/add.c
  (): Include svn_sorts_private.h.
  (mkdir_urls): Use svn_sort__array().

* subversion/libsvn_client/commit.c
  (): Include svn_sorts_private.h.
  (determine_lock_targets): Use svn_sort__array().

* subversion/libsvn_client/commit_util.c
  (): Remove stdlib.h and include svn_sorts_private.h.
  (svn_client__condense_commit_items): Use svn_sort__array().

* subversion/libsvn_client/ra.c
  (): Include svn_sorts_private.h.
  (svn_client__repos_location_segments): Use svn_sort__array().

* subversion/libsvn_client/resolved.c
  (): Remove stdlib.h and include svn_sorts_private.h.
  (svn_client__resolve_conflicts): Use svn_sort__array().
  
* subversion/libsvn_delta/path_driver.c
  (): Include svn_sorts_private.h.
  (svn_delta_path_driver2): Use svn_sort__array().

* subversion/libsvn_diff/parse-diff.c
  (): Include svn_sorts_private.h.
  (svn_diff_parse_next_patch): Use svn_sort__array().
  
* subversion/libsvn_fs_fs/cached_data.c
  (read_dir_entries): Use svn_sort__array().

* subversion/libsvn_fs_fs/transaction.c
  (verify_locks): Use svn_sort__array().

* subversion/libsvn_ra/compat.c
  (svn_ra__locations_from_log): Use svn_sort__array().

* subversion/libsvn_repos/log.c
  (): Include svn_sorts_private.h.
  (turn_unique_copies_into_moves, combine_mergeinfo_path_lists,
   handle_merged_revisions): Use svn_sort__array().

* subversion/libsvn_repos/replay.c
  (): Include svn_sorts_private.h.
  (svn_repos__replay_ev2): Use svn_sort__array().
  
* subversion/libsvn_repos/rev_hunt.c
  (): Include svn_sorts_private.h.
  (find_merged_revisions): Use svn_sort__array().

* subversion/libsvn_subr/mergeinfo.c
  (combine_with_lastrange, parse_revision_line, svn_mergeinfo_sort): Use 
   svn_sort__array().

* subversion/libsvn_wc/revert.c
  (): Include svn_sorts_private.h.
  (revert_restore_handle_copied_dirs): Use svn_sort__array().

* subversion/svndumpfilter/svndumpfilter.c
  (): Include svn_sorts_private.h.
  (do_filter): Use svn_sort__array().


git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1577079 13f79535-47bb-0310-9956-ffa450edef68