We advise against using this. It may be changed or removed in a future update.
Instead, iterate your table with ipairs, storing the previous value and checking for the target. Non-numerically indexed tables are not ordered.
Returns the value positioned before the supplied value in a table. If it isn't found then the last element in the table is returned