knadh/localStorageDB — pull request #35 by orangecoding (2014-03-12 09:54:06+00:00)
Title: Sorting mechanism

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.
Also your library is now AMD compatible.

What I've changed:

added a sorting Method (sortedQuery)
updated the readme file
added the minified version
added amd compatibility