if (direction === 'desc') {
                if (!fieldA) {
                    return -1;
                }
                if (!fieldB) {