var topright = function ( compare ) {

    return function ( a, b ) {

        var d;