Hey @Brent ,
Even not being the creator of this thread, I would like to thank you for sharing your Lua`s knowledge by giving the snippet code above. Really nice from you IMHO. 
So, would you mind “explaining” for this dumb guy here (yes, myself) HOW that works into its “own bowels”? :S
Well, maybe because here it is already 4am without sleep yet, I cannot "understand"exactly how your sample code above WORKS so beautifully. hahaha. Yes, it does run nicely and works as expected as well. I only do not understand the “functionality” of it for it does what have to do so well, got it?
Because looking for this line: [lua]if ( asNum and asNum < newLow ) then[/lua] my brain can’t follow how it is getting the exactly right lower number into the table and also its right position, because when I look at this line I see that all the numbers (set as asNum by you) of his table is already lower than your set threshold and so how it does get the correct number? Is that “logical operator and” making the "difference here? How about the parenthesis?
Well, I think you can see now how I feel. :S
If you can explain the details of it I would be more than glad of it!
BTW, thanks as well for being so helpful here into the Corona Community. I like to read your posts as always I can “find” some clever and smart answers typed by you. Great knowledge and beautiful sharing as well, I appreciate it a lot. 
Have a nice Sunday there,
Cheers,
Rodrigo Costa.
PS: Excuse me @deleurapps for posting here into your thread, but I could not miss the opportunity to learn a bit more as well. 
[import]uid: 89165 topic_id: 30260 reply_id: 121213[/import]