E
Ed
Say I have an array of strings that looks like this:
test-3
test-31
test-11
test-12
test-13
test-32
test-10
test-14
I want them sorted like so:
test-3
test-10
test-11
test-12
test-13
test-14
test-31
test-32
arr.sort doesn't seem to work the way I need. Any help?
Thanks
test-3
test-31
test-11
test-12
test-13
test-32
test-10
test-14
I want them sorted like so:
test-3
test-10
test-11
test-12
test-13
test-14
test-31
test-32
arr.sort doesn't seem to work the way I need. Any help?
Thanks