Edge sorting now happens correctly

Added test for sorting. All geomgraph tests now pass