Details
-
Task
-
Resolution: Done
-
Major - P3
-
None
-
3.2.2
-
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.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 .