converted rows from arrays -> objects to enable sorting