Fix problem exposed by r1577079. * subversion/libsvn_ra/compat.c (svn_ra__locations_from_log): Make a copy of constant apr_array_header_t argument before sorting it.