thanks for going 'above and beyond' the call of duty.
that fixes the problem in so far as all the rows are returned. but still not in the order of the array,
i amended your code slightly to build rows into the table, so that you can more easily see when the values correspond
here is the amended file
never mind, i'll quit on this for the time being