Select a range of values from a list

I have a list of numbers ranging from 0-150. I would like to group the numbers by their value. 0-10, 10-20, 20-50, ex…How would you guys recommend doing this? If the groups need to be separated into there own list that is fine.

Thanks for all of you help. This should be my last step in the script that I am writing.

File: SortByRange.dyn

20160116-1

Vikram,

Thank you so much for the definition. I made so changes to it so I could control the ranges for each subsist. I am uploading what I did for anyone else who reads this post.

Thanks again,

 

I’d minimize the number of required input variables and make it more flexible like this…