This changes sorting order of packages and modules in the search box from last name segment to whole package or module name, respectively. Apart from fixing the observed issue that leads to more intuitive listings as package and module names are hierarchic by nature.
The sorting order for types, members, and search tags is not changed. The patch also moves sorting from client side JavaScript to Java, speeding up rendering of search results by at over 2x. It also provides the benefit of secondary order, so members and types with the same name and signature are now ordered by package name, whereas their order was undefined before. Please review: Webrev: cr.openjdk.java.net/~hannesw/8190876/webrev.00/ Issue: https://bugs.openjdk.java.net/browse/JDK-8190876 Thanks, Hannes
