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