Actual List
[SmartPhone [brand=Apple, model=6s, price=50000, rating=10],
SmartPhone [brand=lg, model=pro2, price=40000, rating=9],
SmartPhone [brand=MI, model=3s, price=10000, rating=6],
SmartPhone [brand=Letv, model=le2, price=12000, rating=7]]
Sorting the list as comparator
[SmartPhone [brand=MI, model=3s, price=10000, rating=6],
SmartPhone [brand=Letv, model=le2, price=12000, rating=7],
SmartPhone [brand=lg, model=pro2, price=40000, rating=9],
SmartPhone [brand=Apple, model=6s, price=50000, rating=10]]
Reversing the Comparator sorting
Printing the reverse list
[SmartPhone [brand=Apple, model=6s, price=50000, rating=10],
SmartPhone [brand=lg, model=pro2, price=40000, rating=9],
SmartPhone [brand=Letv, model=le2, price=12000, rating=7],
SmartPhone [brand=MI, model=3s, price=10000, rating=6]]