add bbox sorting routine to rtgeom library