Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-670

Sort.Direction.DESC from enum is value 1 instead of -1

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.9.1
    • API
    • None
    • Windows, Ubuntu

    Description

      query.with(new Sort(Sort.Direction.DESC, "fieldxxx"));
      In Mongo the value of desc should be -1 instead of 1 that is coming from enum.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ranksu Jari Rangell
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: