sort and display uniformly