It works with more items with no problem .You should know that items are treated as strings so when you want to sort for example numbers , sorting is according to the first digit for example in a list 2,5,3,4,1,10,7,6,8,9 sorting will result as 1, 10, 2, 3, 4, 5, 6, 7, 8, 9 See example below
To overcome that problem all you have to add leading zeros to your numbers for example
Show where do you show the result of your list ? As element in a list view ?