lib/database/Database.js
/** Compare two values in normal sense of the word (numbers as numbers, strings as strings with locale) */
Compare two values in normal sense of the word (numbers as numbers, strings as strings with locale)
Compare two values in normal sense of the word ( numbers as numbers strings as strings with locale )
function normalCompare(a, b) {
    if (typeof a == "number" && typeof b == "number") {
        return a > b ? 1 : (a < b ? -1 : 0);
    }
    return String(a).localeCompare(b);
}
function normalCompare ( a , b ) { if ( typeof a == "number" && typeof b == "number" ) { return a > b ? 1 : ( a < b ? - 1 : 0 ) ; } return String ( a ) . localeCompare ( b ) ; }
Compare two values in normal sense of the word (numbers as numbers, strings as strings with locale)
Compare two values in normal sense of the word ( numbers as numbers strings as strings with locale )