Saturday, 28 September 2013

Sort filename like abc 1.1, abc 1.1.1, abc 1.0 in PHP

Sort filename like abc 1.1, abc 1.1.1, abc 1.0 in PHP

I have used natsort(), but it didn't work as I want to have.
It display sorted array like this:
1) abc 1.0
2) abc 1.1.1
3) abc 1.1
But I want:
1) abc 1.0
2) abc 1.1
3) abc 1.1.1
So, please tell what is the possible solution of this in php

No comments:

Post a Comment