Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-663

Add multi field sort example to documentation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • 2.6.3
    • 2.7
    • None
    • None

    Description

      The documentation doesn't seem to have multi-field sort example code. This would be very helpful.

      For example: ".sort([("field1",pymongo.ASCENDING), ("field2",pymongo.DESCENDING)])"

      Attachments

        Activity

          People

            jesse@mongodb.com A. Jesse Jiryu Davis
            ger.hartnett@mongodb.com Ger Hartnett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: