MANTA-51 fix unique sorting patch