sorted java 8 reverse code example Example: java stream sorted reverse list.stream().sorted(Comparator.reverseOrder())