Also revised the Prolog code to sort siblings