dealt with results of sort_by

sort_by creates arrays of arrays for k/v hash pairs
more changes