sorting on the actual data array is now working