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