add sort to bodies