I can't find a clear license for the sample code on the lua-users.org wiki, so reimplement numeracy_ordered_pairs() from scratch. Signed-off-by: James Hogan <james@albanarts.com>