if we want to use we need to firdt change the set into list and then only we can make use of collections special methods like sort and reverse() ...