title: Returning key of maximum or minimum number in a table
body: <p>A simple Lua problem here: how to find the index, or key, of the minimum or maximum number in a given table.</p>
  
  <p><code>math.max</code>/<code>math.min</code> only gives the actual max or min number, not the key.</p>