<prompt> Andika kazi ya Python ili kupanga safu ya pande mbili kulingana na faharasa ya safu wima uliyopewaSafu 1,2,3, 4,5,6, 7,8,9Kielezo cha safuwima 2  <response>: def sortByColIndexarr, col_index: arr.sortkeylambda x : xcol_index kurudi arrsortedArray sortByColIndexarr, 2printsortedArrayPato:3, 2, 1, 6, 5, 4, 9, 8, 7 