CORE: add sort