Moved searching part to Mapper to sort by sequence