Refactor sort: move all API responsability to clo_scan_abstract