Spring Data MongoDB
  1. Spring Data MongoDB
  2. DATAMONGO-177

Sorting on multiple fields does not maintain order

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0 M3
    • Fix Version/s: 1.0 M4
    • Component/s: Repository
    • Labels:
      None
    • Environment:
      osx 10.5, tomcat 7

      Description

      When I try to sort on multiple fields the order of the fields is not maintained. The Sort class is using a HashMap instead of a LinkedHashMap so the order they are returned is not guaranteed.

        Activity

        Hide
        Oliver Gierke added a comment -

        Will be available in tonights snapshot.

        Show
        Oliver Gierke added a comment - Will be available in tonights snapshot.

          People

          • Assignee:
            Oliver Gierke
            Reporter:
            Carlos Lawton
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: