Sorting data lines from serial port
<p>I have a program that sends a string of data over the serial port.</p>

<p>I would like to sort the data string into different arrays so that I can display them or calculate an average of the number.</p>

<p>The numbers are separated by commas. The first number is always 0, and is not used, the same for the number after *.
The next number is the one that defines what the next number after comma is.</p>

<pre>
    #0,    1,5.430,    4,-55.3,    5,6.60,    6,151.0,    51,5.500*16
    #0,    1,5.440,    51,5.400*22
    #0,    1,5.480,    4,-55.0,    5,6.50,    6,151.0*37
    #0,    1,5.490,    4,-53.7,    5,6.70,    51,5.500*02
</pre>

<p>Since I'm unable to insert pictures I have added a [TAB] to show the different groups different groups, and added a [TAB]</p>

<p>The programs don't always send the same length of line.</p>

<p><p>Array "1"  contains number "5.430"
 <p>Array "4" contains number "-55.3"
 <p>Array "5" contains number "6.60" </p>

<p>And so on.</p>
