sorting out rtree