Fixed as_nparray...should sort by channel, not by channel number,
just in case the numbering of the channels is inconsistent.