I have question that was asked of me on my job interview:
You have an array of items, each element matches the following pattern:
You want to sort the array both alphabetically and numerically:
ie 'abc123' comes after 'abc2' because 2<123 when compared numerically.
How would you do this?
Can you do it in one line code? Mine wasn't but I still got the job, However I have seen it in one line of code.