Sorting 2D Integer Points