how can i sort a field in a array

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.4.8
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      i have some data like this:
      {
      config:{
      [id:'',count:1],
      [id:'',count:2]
      }
      }

      now i want sort by config.count,but it not sort the field what i query.
      if a record has some counts,it will sort by the largest one or the smallest one,not what i query.

            Assignee:
            Unassigned
            Reporter:
            Qin [X]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: