adding sort-map-by-value for use with (pivot)