You havethe answers that you need. But for future reference for posting questions here, here are a few hints.
Keep your data short. If you can demonstrate what you need with 5 lines of data then any more is obscuring your point and people will stop reading your question.
Generally we like to see some code to see that you have had a try at solving the problem.
If you absolutly must include a huge amount of data then put it in readmore tags (see Writeup Formatting Tips).
Although your code and data generally show a problem, it is always good to describe your problem in words so that we understand where you are coming from. In this case you could have posted something like:
I have a problem sorting some data that is mixed numbers and letters. At the moment I am using sort but the result is like this:
K-2-D-19A K-2-D-1D K-2-D-20A K-2-D-20B K-2-D-2I K-2-D-2J
and I would like it to be like:
K-2-D-1D K-2-D-19A K-2-D-2I K-2-D-2J K-2-D-20A K-2-D-20B
How do I do that?
In reply to Re: Sorting question
by GrandFather
in thread Sorting question
by perl_seeker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |