I am changing a php plugin and having a hard time to get the sorting of the array it pulls from the database right. As of now I have it like:
order by LENGTH(name), name
Which gets me close but not right. It outputs like so:
8.2-11
8.2-12
8.2-13
8.2-14
8.2-13-A
Which I understand because 8.2-13-A
is longer than 8.2-13
so it will be at the end. How can I ignore the -A
or -B
so the two 8.2-13
's are right after each other?