ManuelMaciel / skyDB

a JSON powered database (yes, another one)

Home Page:https://www.npmjs.com/package/skydb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[bug]: order by does not work

ManuelMaciel opened this issue · comments

  • I'm submitting a ...

    • bug report
    • feature request
    • support request => Please do not submit support request here, see note at the top of this template.
  • Do you want to request a feature or report a bug?
    no

  • What is the current behavior?
    the parameter of the function getAll, sort by is not sorting in ascending or descending order

  • What is the expected behavior?
    it should sort in ascending order of the value to be sorted and descending order but it would not be sorting at all

  • What is the motivation / use case for changing the behavior?
    The data that is brought from the json can be sorted.

  • Please tell us about your environment:

    • Version: 1.1.0
    • Browser: none
    • Language: JS
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
    check the function on line 33 in the code of getAll

#2 fixed