samuk190 / localbase

A Firebase-Style Database ... Offline!
636 stars 84 forks source link

Bug: Function orderBy cannot deal number type #42

Closed laughwong closed 2 months ago

laughwong commented 3 years ago

I use this function:

orderBy('count','desc')

but i get this:

{name:"x1",count:2} {name:"x2",count:12} {name:"x3",count:13}

that means, the function "orderBy" is not deal count field as a number. so I check the code in "get.js" line 36 and line 41, I know why it can't work correct.

Wish you fix it, this library really help me a lot, thanks.

RajvirSingh1313 commented 3 years ago

Same Problem Here

samuk190 commented 2 months ago

Is it solved? if not, please open a new issue.