Chrome webkit local storage Retrieve first/last/all records

Hi, I’m having some experiment with the new html5 features, I got the point where I need to store and retrieve data that I don’t know it’s key or value. It is appeared that there is no document about I want to do. Maybe Sitepoint folks have some solution for me??

My database is like so

key/value
1/my first entry
2/my second entry
3/my third entry
…/…

How can I retrieve the first, the last and all record(s) ?

http://www.quirksmode.org/dom/html5.html

Only IE and Opera appear to retain the correct order when saving and retrieving, the other browsers retrieve in an unpredictable order.