Fix the hinting function in svn_sort__array_lookup.
Fix the hinting function in svn_sort__array_lookup.

On trunk, we use it in a way that does not expose the breakage
caused by only comparing one side of the insertion position.
Take the opportunity to write clearer and less restrictive code
by special-casing insertion at the array boundaries.

* subversion/libsvn_subr/sorts.c
  (svn_sort__array_lookup): Rewrite the HINT evaluation code path.

git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@1621375 13f79535-47bb-0310-9956-ffa450edef68

YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion