line over random connected points sprinkled on shapes and sorted in different ways