add sort to poses