Fix contour line ordering issue from #293
Merge pull request #350 from darwindarak/contour_preserve_order

Fix contour line ordering issue from #293