Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-3944

Comment on: "manual/reference/operator/aggregation/sort.txt"

    XMLWordPrintableJSON

Details

    Description

      how could I sort by one field of the subDocument???

      example:
      VodInfo1 = {id:1,bindCategory : [

      {categoryId:1,bindTime:‘201405’},{categoryId:2,bindTime:‘201405’}]};
      VodInfo2 = {id:2,bindCategory : [{categoryId:2,bindTime:‘201405’},{categoryId:1,bindTime:‘201405’}

      ]};

      I want to sort by bindCategory.bindTime and bindCategory.catgoryId = 1

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 25 weeks, 2 days ago