knadh/localStorageDB — pull request #34 by orangecoding (2014-02-26 07:34:23+00:00)
Title: Added ability to get a sorted (query) result

Hi,

I've added a new function named "sortedQuery". It works like query but it sorts the query results.
If you query data from within the localStorage, you'll get the ID's of the rows. Afterwards you'll select the data with the ids. The ID's are within an object. Now if I've changed this object into an array. An array has a native sort function which I use to sort the ids. After this sorting, I'll use your query method as it's intend to use.
I've added a new method (and not changed the actual qury method) to not break your API. Anyway, It would be much (muuuuch) better to chnage the method signature of query to query(table_name, obj). The Obj could contain things like limit, start or event sorting information.

What I've changed:
- added a sorting Method (sortedQuery)
- updated the readme file
- added the minified version