To request I try to specify more data - as sample.
each element in array is in fact another array so there should be sometnig like:
name;password;phonenumber;price
with real datas something like this:
LTOW;mypass;+420-2-312456;1.125.369,25
I know (it is somewhere specify) that in phonenumber are only phonenumber in format like this one. When I want sort element in @array by phone number I must first convert number into number only format - remove + and - marks. Than I will be able to use <=> operator. But results should be @array with original phone numbers. Price field is the same problem - at first I must convert into numeric only and then I can sort.....
Li Tin O've Weedle
mad Tsort's philosopher
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.