Hi,
I'm trying to sort some alphanumeric strings (Array Keys)
and it's not sorting correctly.
The keys are in the following:
With ksort (SORT_STRING), I get the following order
But "type_4_2" should be before "type_23_12". The number "4" is treated differently.
Thank you in advance.
I'm trying to sort some alphanumeric strings (Array Keys)
and it's not sorting correctly.
The keys are in the following:
Code:
type_23_12
reason_24_22
type_4_2
type_34_2
With ksort (SORT_STRING), I get the following order
Code:
reason_24_22
type_23_12
type_34_2
type_4_2
But "type_4_2" should be before "type_23_12". The number "4" is treated differently.
Thank you in advance.