Я хочу
var myArray = [
"some text here, @8 00001#p0030",
"some text here, @6 00001#p0030",
"some text here, @4 00001#p0030",
"some text here, @3 00001#p0030",
"some text here, @1 00001#p0030",
"some text here, @2 00001#p0030",
"some text here, @1 00001#p0030",
"some text here, @1 00001#p0030",
"some text here, @8 00001#p0030",
"some text here, @9 00001#p0030"
];
примерно так:
var myArray = [
"some text here, @1 00001#p0030",
"some text here, @1 00001#p0030",
"some text here, @1 00001#p0030",
"some text here, @2 00001#p0030",
"some text here, @3 00001#p0030",
"some text here, @4 00001#p0030",
"some text here, @6 00001#p0030",
"some text here, @8 00001#p0030",
"some text here, @8 00001#p0030",
"some text here, @9 00001#p0030"
];
Есть ли способ отсортировать его на основе @number, присутствующего в строке?