add sort_port function
update to 0.3.9..change from using 0.X-Y to 0.X.Y notation