Не выполняется следующее требование:"Программа должна выводить числа в порядке убывания"
package com.javarush.task.task04.task0420;
/*
Сортировка трех чисел
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String s1 = reader.readLine(), s2 = reader.readLine(), s3 = reader.readLine();
int x1 = Integer.parseInt(s1), x2 = Integer.parseInt(s2), x3 = Integer.parseInt(s3);
if (x1 <= x2 && x1 <= x3) {
if (x2 <= x3) System.out.println(x3 + " " + x2 + " " + x1);
else System.out.println(x2 + " " + x3 + " " + x1);
}
if (x2 <= x1 && x2 <= x3) {
if (x1 <= x3) System.out.println(x3 + " " + x1 + " " + x2);
else System.out.println(x1 + " " + x3 + " " + x2);
}
if (x3 <= x1 && x3 <= x2) {
if (x1 <= x2) System.out.println(x2 + " " + x1 + " " + x3);
else System.out.println(x1 + " " + x2 + " " + x3);
}//напишите тут ваш код
}
}