src/utils/util.js
//Use toUpperCase() to ignore character casing
Use toUpperCase() to ignore character casing
Use toUpperCase () to ignore character casing
function innerSort(a, b) {
            if (!a.hasOwnProperty(key) || !b.hasOwnProperty(key)) {
                return 0;
            }
            const valA = (typeof a[key] === 'string') ? a[key].toUpperCase() : a[key];
            const valB = (typeof b[key] === 'string') ? b[key].toUpperCase() : b[key];
            let comparison = 0;
            if (valA > valB) {
                comparison = 1
            } else if (valA < valB) {
                comparison = -1
            }
            return (
                (order === 'desc') ? (comparison * -1) : comparison
            );
        }
function innerSort ( a , b ) { if ( ! a . hasOwnProperty ( key ) || ! b . hasOwnProperty ( key ) ) { return 0 ; } const valA = ( typeof a [ key ] === 'string' ) ? a [ key ] . toUpperCase ( ) : a [ key ] ; const valB = ( typeof b [ key ] === 'string' ) ? b [ key ] . toUpperCase ( ) : b [ key ] ; let comparison = 0 ; if ( valA > valB ) { comparison = 1 } else if ( valA < valB ) { comparison = - 1 } return ( ( order === 'desc' ) ? ( comparison * - 1 ) : comparison ) ; }
Use toUpperCase() to ignore character casing
Use toUpperCase () to ignore character casing