valuesort sorts a map by value instead of key