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