PIM-2184 : implements completeness sorter (MongoDB)