Use a 'Sorter' object with the settings as shown in the figure. Enter the name of your attribute in place of 'myAttribute'. Make sure to set the order to ascending(This is assuming that no value of attribute is less than 1).
Again, go to Plant Simulation Help and try to read the topics Sorter and Sorting Criterion. That should help.