sorted order printing
sorted order printing