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