Implemented ticket #521
"Enhance the 'cmp()' function"
Authored by: numere 2020-04-23
Parent: [r699]
Child: [r701]