added simple second snippet of sorting multi-dimension arrays