result displaying in ascending order