title: How to sort indexeddb keyField numerically when keyField is composite?
body: <p>I've got an indexeddb with a composite key.  The first two parts of the key are strings but the third is supposed to be a number.  However, when I look at the order of the records (they are stored sorted by the keyField) the numeric field is being sorted lexigraphically, so that &quot;10&quot; falls in between &quot;1&quot; and &quot;2&quot;.  Everything else is correct, i.e. things are sorted by the first key in the composite first, followed by the second and finally the third.</p>
  <p>If the key is not composite and I use autoIncrement I see numbers are used as the index and &quot;10&quot; falls after &quot;9&quot; as expected and not in between &quot;1&quot; and &quot;2&quot;.  So I tried passing <code>autoIncrement: [ false, true, true ]</code> when creating the database but got the error <code>The autoIncrement option was set but the keyPath option was empty or an array.</code></p>
  <p>How can I specify the sort function or otherwise denote that the third field is numeric so that it will sort correctly?  I would rather not zero-pad the number (I don't know how long it will be) and I would prefer to not have to sort things myself.  I noticed that if I only have a single index field.</p>