I am developing an educational site with requires sorting by range of numbers. I need some help on how to sort my data into the range as listed below. 581 is the highest, 604 is the lowest. It starts with 604 to 582, and begin again with 1 until 581.
(Highest) 581 580 579. . . 3 2 1 582 . . . 602 603 604 (Lowest)