Are you sure you're working with a two-dimensional array, and not just a one-dimensional array of comma-separated strings?
The code works; this should demonstrate that:
$lines[] = array(5, 'stringhere5', 'anotherstring5', 'example5', 'etc5', 105);
$lines[] = array(3, 'stringhere3', 'anotherstring3', 'example3', 'etc3', 103);
$lines[] = array(1, 'stringhere1', 'anotherstring1', 'example1', 'etc1', 101);
$lines[] = array(2, 'stringhere2', 'anotherstring2', 'example2', 'etc2', 102);
$lines[] = array(4, 'stringhere4', 'anotherstring4', 'example4', 'etc4', 104);
echo '<pre>';
echo '<b>Array Unsorted:</b><br />';
print_r($lines); // Show unsorted array.
// Sort array:
foreach ($lines as $line_num => $line) {
$tmp[$line_num] = $line[5];
}
array_multisort($tmp, SORT_ASC, $lines);
echo '<b>Array Sorted by Subarray Index 5:</b><br />';
print_r($lines); // Show sorted array.
echo '</pre>';