LIB001-494: Fixing sorting errors in clds by defining metadata terms cor...

..rectly.