XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 3.2.2
    • Query Operations
    • None
    • windows 7, 64 bit

    Description

      i have collection like this

      {"index":"1.1.1"} {"index":"1.1.2"}

      .......................

      {"index":"1.1.9"} {"index":"1.1.10"} {"index":"1.1.1.1"}

      and i want to fetch 1.1.1 to 1.1.
      d+$ results in DESC order,
      so for this regex will be ^1.1[.]
      d+$, and from this i getting correct data,
      but after DESC ordering applied iam getting all data correct but its order is not correct i'm getting :

      {"index":"1.1.1"} {"index":"1.1.10"} {"index":"1.1.2"}

      .......................

      {"index":"1.1.9"}

      So why this is happening ? according to DESC it has to show me 1.1.10 after 1.1.9.

      please help me if i can do this with methods substring and last indexof .

      Attachments

        Activity

          People

            Unassigned Unassigned
            sorav.sahu@gmail.com sorabh sahu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: