Мне кажется я все возможные проверки провел, в среде вроде по всякому проверял - выводит от большего к меньшему
package com.javarush.task.task04.task0420;
/*
Сортировка трех чисел
*/
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(reader.readLine());
int b = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
int min = a;
if (b<=a) min=b;
if((c<=b)&&(c<=a)) min=c;
int max = a;
if (b>=a) max=b;
if((c>=b)&&(c>=a)) max=c;
int mid=a;
if ((b>min)&&(b<max)) mid=b;
if((c>min)&&(c<max)) mid =c;
System.out.println(max+" "+mid+" "+min);
}
}