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